


"ui";

var ColoredButton = (function () {
    //继承ui.Widget
    util.extend(ColoredButton, ui.Widget);

    function ColoredButton() {
        //调用父类构造函数
        ui.Widget.call(this);
        //自定义属性color，定义按钮颜色
        this.defineAttr("color", (view, name, defaultGetter) => {
            return this._color;
        }, (view, name, value, defaultSetter) => {
            this._color = value;
            view.attr("backgroundTint", value);
        });
        //自定义属性onClick，定义被点击时执行的代码
        this.defineAttr("onClick", (view, name, defaultGetter) => {
            return this._onClick;
        }, (view, name, value, defaultSetter) => {
            this._onClick = value;
        });
    }
    ColoredButton.prototype.render = function () {
        return (
            <button textSize="16sp" style="Widget.AppCompat.Button.Colored" w="auto" />
        );
    }
    ColoredButton.prototype.onViewCreated = function (view) {
        view.on("click", () => {
            if (this._onClick) {
                eval(this._onClick);
            }
        });
    }
    ui.registerWidget("colored-button", ColoredButton);
    return ColoredButton;
})();
function 读取更新text(a路径) {
    if (!files.isFile("/sdcard/" + a路径 + ".txt")) {
        return "";
    }
    //更新文件路径
    var path = "/sdcard/" + a路径 + ".txt";
    //打开更新文件
    var file = open(path);
    //读取更新文件的所有内容
    a返回 = file.read();
    //关闭更新文件
    // log(a返回)
    file.close();
    return a返回;
}
var uxmds121 = 读取更新text("xmds121")
var ben = 读取更新text("更新text")
var uxmds1 = 读取更新text("xmds1")
var uxmds2 = 读取更新text("xmds2")
var uxmds3 = 读取更新text("xmds3")
var uxmds4 = 读取更新text("xmds4")
var uxmds5 = 读取更新text("xmds5")
var uxmds6 = 读取更新text("xmds6")
var uxmds7 = 读取更新text("xmds7")
var uxmds8 = 读取更新text("xmds8")
var uxmds9 = 读取更新text("xmds9")
var uxmds10 = 读取更新text("xmds10")
var uxmds11 = 读取更新text("xmds11")
var uxmds12 = 读取更新text("xmds12")
var uxmds13 = 读取更新text("xmds13")
var uxmds14 = 读取更新text("xmds14")
var uxmds15 = 读取更新text("xmds15")
var uxmds16 = 读取更新text("xmds16")
var uxmds17 = 读取更新text("xmds17")
var uxmds18 = 读取更新text("xmds18")
var uxmds19 = 读取更新text("xmds19")
var uxmds20 = 读取更新text("xmds20")
var uxmds21 = 读取更新text("xmds21")
var uxmds22 = 读取更新text("xmds22")
var uxmds23 = 读取更新text("xmds23")
var uxmds24 = 读取更新text("xmds24")
var uxmds25 = 读取更新text("xmds25")
var uxmds26 = 读取更新text("xmds26")
var uxmds27 = 读取更新text("xmds27")
var uxmds28 = 读取更新text("xmds28")
var uxmds29 = 读取更新text("xmds29")
var uxmds30 = 读取更新text("xmds30")
var uxmds31 = 读取更新text("xmds31")
var uxmds32 = 读取更新text("xmds32")
var uxmds33 = 读取更新text("xmds33")
var uxmds34 = 读取更新text("xmds34")
var uxmds35 = 读取更新text("xmds35")
var uxmds36 = 读取更新text("xmds36")
var uxmds37 = 读取更新text("xmds37")
var uxmds38 = 读取更新text("xmds38")
var uxmds39 = 读取更新text("xmds39")
var uxmds40 = 读取更新text("xmds40")
var uxmds41 = 读取更新text("xmds41")
var uxmds42 = 读取更新text("xmds42")
/////主下
var uxmds43 = 读取更新text("xmds43")
var uxmds44 = 读取更新text("xmds44")
var uxmds45 = 读取更新text("xmds45")
var uxmds46 = 读取更新text("xmds46")
var uxmds47 = 读取更新text("xmds47")
var uxmds48 = 读取更新text("xmds48")
var uxmds49 = 读取更新text("xmds49")
var uxmds50 = 读取更新text("xmds50")
var uxmds51 = 读取更新text("xmds51")
var uxmds52 = 读取更新text("xmds52")
var uxmds53 = 读取更新text("xmds53")
var uxmds54 = 读取更新text("xmds54")
var uxmds55 = 读取更新text("xmds55")
var uxmds56 = 读取更新text("xmds56")
var uxmds57 = 读取更新text("xmds57")
var uxmds58 = 读取更新text("xmds58")
var uxmds59 = 读取更新text("xmds59")
var uxmds60 = 读取更新text("xmds60")
var uxmds61 = 读取更新text("xmds61")
var uxmds62 = 读取更新text("xmds62")
var uxmds63 = 读取更新text("xmds63")
var uxmds64 = 读取更新text("xmds64")
var uxmds65 = 读取更新text("xmds65")

var uxmds67 = 读取更新text("xmds67")
var uxmds68 = 读取更新text("xmds68")
var uxmds69 = 读取更新text("xmds69")
var uxmds70 = 读取更新text("xmds70")
var color = "#009688";
ui.layout(
    <drawer id="drawer">
        <vertical>
            <appbar>
                {/* 版本号修改 */}
                <toolbar id="toolbar" title="老铁呱呱版本： 40++" />
                <tabs id="tabs" />
            </appbar>
            <linear gravity="center">
                <colored-button id="下载新脚本id" text="{{ben}}" color="#ff5722" />
                <button id="ok" text="开始" style="Widget.AppCompat.Button.Colored" />
            </linear>
            <viewpager id="viewpager">
                <frame>
                    <ScrollView>
                        <vertical padding="16">
                            <horizontal>
                                <button id="zdtx1" textColor="BLUE" text="自动填写旧参数" textSize="12sp" />
                                <button id="云端配置id" textColor="BLUE" text="自动填写云端参数" textSize="12sp" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="云端帐号：" />
                                <input id="xmds121" text="{{uxmds121}}" w="*" h="40" />
                            </horizontal>
                            <text textSize="17sp" textColor="BLUE" text="" />
                            <text textSize="17sp" gravity="center" textColor="BLUE" text="---卡密激活：---" />
                            <input id="xmds43" text="{{uxmds43}}" w="*" h="40" />
                            <horizontal>
                                <button id="zdtx166" textColor="BLUE" text="自动提现" textSize="12sp" />
                            </horizontal>
                            <text textSize="12sp" textColor="BLUE" text="1:--手机分辨率必填项，请勿乱填--" />
                            <horizontal>
                                <text textSize="12sp" textColor="RED" text="手机分辨率-宽" />
                                <input id="xmds44" text="{{uxmds44}}" />
                                <text textSize="12sp" textColor="RED" text="高" />
                                <input id="xmds45" text="{{uxmds45}}" />
                            </horizontal>
                            <text textSize="12sp" textColor="BLUE" text="2:--清理后台坐标(小米·华为系列不用填)" />
                            <horizontal>
                                <text textSize="12sp" textColor="RED" text="X:" />
                                <input id="xmds59" text="{{uxmds59}}" />
                                <text textSize="12sp" textColor="RED" text="Y:" />
                                <input id="xmds60" text="{{uxmds60}}" />
                            </horizontal>
                            <horizontal>
                                <Switch id="自动添加到桌面id" textColor="RED" text="添加到桌面" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <Switch id="开启检测假死重启id" textColor="RED" text="假死重启" checked="false" padding="0 0 0 0" textSize="13sp" />
                            </horizontal>
                            <horizontal>
                                <Switch id="下载守护程序id" textColor="RED" text="下载守护程序" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <Switch id="下载守护脚本id" textColor="RED" text="下载守护-开机解锁" checked="false" padding="0 0 0 0" textSize="13sp" />
                            </horizontal>
                            <text textSize="12sp" textColor="BLUE" text="4:--低电量检测充电" />
                            <text textSize="12sp" textColor="BLACK" text="方案1：填 99--99 为关闭" />
                            <horizontal>
                                <text textSize="12sp" textColor="BLACK" text="方案1：" />
                                <text textSize="12sp" textColor="RED" text="定时" />
                                <input id="xmds46" text="{{uxmds46}}" />
                                <text textSize="12sp" textColor="RED" text="时充电，" />
                                <input id="xmds47" text="{{uxmds47}}" />
                                <text textSize="12sp" textColor="RED" text="时运行脚本(24时格式)" />
                            </horizontal>
                            <text textSize="12sp" textColor="BLACK" text="方案2：填 1--100 为关闭" />
                            <horizontal>
                                <text textSize="12sp" textColor="BLACK" text="方案2：" />
                                <text textSize="12sp" textColor="RED" text="电量低于" />
                                <input id="xmds48" text="{{uxmds48}}" />
                                <text textSize="12sp" textColor="RED" text="%充电，高于" />
                                <input id="xmds49" text="{{uxmds49}}" />
                                <text textSize="12sp" textColor="RED" text="%运行脚本" />
                            </horizontal>
                        </vertical>
                    </ScrollView >
                </frame>
                <frame>
                    <ScrollView>
                        <vertical padding="16">
                            <horizontal >
                                <text textSize="15sp" textColor="black" text="1,定时运行示例：" />
                                <text textSize="15sp" textColor="RED" text="24h格式。间隔5h以上" />
                            </horizontal>
                            <text textSize="15sp" textColor="BLUE" text="2,时间：0时~23时为一天。" />
                            <text textSize="15sp" textColor="black" text="3,没有24时，24时就是0时。" />
                            <text textSize="15sp" textColor="BLUE" text="4,填1-6,12-20,23-5等等都可以。" />
                            <text textSize="15sp" textColor="black" text="5,不想运行平台，就别勾选" />
                            <text textSize="15sp" textColor="BLUE" text="6,想填就填，什么都不填默认" />
                            <text textSize="15sp" textColor="BLUE" text="永久循环运行。" />
                            <text textSize="12sp" textColor="RED" text="" />

                            <horizontal gravity="center" >
                                <colored-button id="zdtx4" text="全部勾选" textSize="12sp" />
                                <colored-button id="zdtx5" text="全部清空勾选" textSize="12sp" />
                                <colored-button id="zdtx2" text="全部清空定时" textSize="12sp" />
                            </horizontal>
                            <horizontal gravity="center">
                                <text textSize="12sp" textColor="black" text="项目平台:" />
                                <text textSize="12sp" textColor="RED" text="↓" />
                                <text textSize="12sp" textColor="black" text="      定时运行:" />
                                <text textSize="12sp" textColor="RED" text="↓(留空不限时)" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt1" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="1-老铁领红包→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds1" text="{{uxmds1}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds2" text="{{uxmds2}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt2" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="2-连码有钱→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds3" text="{{uxmds3}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds4" text="{{uxmds4}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt3" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="3-花小钱→→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds5" text="{{uxmds5}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds6" text="{{uxmds6}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt4" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="4-一路向钱→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds7" text="{{uxmds7}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds8" text="{{uxmds8}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt5" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="5-天天攒零钱→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds9" text="{{uxmds9}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds10" text="{{uxmds10}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt6" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="6-超级直播间→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds11" text="{{uxmds11}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds12" text="{{uxmds12}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt7" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="7-今日任务→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds13" text="{{uxmds13}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds14" text="{{uxmds14}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt8" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="8-领小钱→→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds15" text="{{uxmds15}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds16" text="{{uxmds16}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt9" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="9-天天乐抽奖→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds17" text="{{uxmds17}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds18" text="{{uxmds18}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt10" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="10-点点成金→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds19" text="{{uxmds19}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds20" text="{{uxmds20}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt11" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="11-有礼有钱→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds21" text="{{uxmds21}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds22" text="{{uxmds22}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt12" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="12-流量钱包→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds23" text="{{uxmds23}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds24" text="{{uxmds24}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt13" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="13-轩盛天天翻牌" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds25" text="{{uxmds25}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds26" text="{{uxmds26}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt14" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="14-赚小钱→→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds27" text="{{uxmds27}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds28" text="{{uxmds28}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt15" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="15-集宝星球→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds29" text="{{uxmds29}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds30" text="{{uxmds30}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt16" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="16-每日签到→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds31" text="{{uxmds31}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds32" text="{{uxmds32}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt17" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="17-集集攒→→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds33" text="{{uxmds33}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds34" text="{{uxmds34}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt18" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="18-天天集宝→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds35" text="{{uxmds35}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds36" text="{{uxmds36}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt19" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="19-赚点是点→→  " checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds37" text="{{uxmds37}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds38" text="{{uxmds38}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt20" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="20-天天有礼→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds39" text="{{uxmds39}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds40" text="{{uxmds40}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt21" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="21-走路领钱→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds41" text="{{uxmds41}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds42" text="{{uxmds42}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt25" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="22-淘宝签到→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds67" text="{{uxmds67}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds68" text="{{uxmds68}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt26" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textColor="BLUE" text="23--待加项目" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds69" text="{{uxmds69}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds70" text="{{uxmds70}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <card w="*" h="70" margin="10 5" cardCornerRadius="2dp"
                                cardElevation="1dp" gravity="center_vertical">
                                <vertical>
                                    <horizontal gravity="center">
                                        <checkbox id="xmpt22" checked="false" padding="0 0 0 0" textSize="13sp" />
                                        <text textColor="BLUE" text="24-掌上有钱→→" checked="false" padding="0 0 0 0" textSize="13sp" />
                                        <text textSize="12sp" text=" " />
                                        <input id="xmds50" text="{{uxmds50}}" />
                                        <text textSize="12sp" textColor="BLUE" text="时" />
                                        <text textSize="12sp" textColor="RED" text="≈" />
                                        <input id="xmds51" text="{{uxmds51}}" />
                                        <text textSize="12sp" textColor="BLUE" text="时" />
                                        <text textSize="12sp" textColor="BLUE" text=",任务上限" />
                                        <input id="xmds52" text="{{uxmds52}}" />
                                        <text textSize="12sp" textColor="RED" text="个" />
                                    </horizontal>
                                    <horizontal gravity="center">
                                        <checkbox id="xmpt27" checked="false" padding="0 0 0 0" textSize="12sp" />
                                        <text textColor="BLUE" text="掌上有钱后补任务【金币星球】" checked="false" padding="0 0 0 0" textSize="12sp" />
                                    </horizontal>
                                </vertical>
                                <View bg="#2196f3" h="*" w="10" />
                            </card>
                            <horizontal gravity="center">
                                <checkbox id="xmpt23" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" textColor="BLUE" text="25-XY任务→→→ " />
                                <text textSize="12sp" text=" " />
                                <input id="xmds53" text="{{uxmds53}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds54" text="{{uxmds54}}" />
                                <text textSize="12sp" textColor="BLUE" text="时，" />
                                <checkbox id="XY随机id" textColor="BLUE" text="随机运行" />
                            </horizontal>
                            <horizontal gravity="center">
                                <checkbox id="xmpt24" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" textColor="BLUE" text="26-点淘.淘宝取关  →→" />
                                <text textSize="12sp" text=" " />
                                <input id="xmds57" text="{{uxmds57}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds58" text="{{uxmds58}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal gravity="center_horizontal">
                                <text textSize="15sp" textColor="black" text="-----以下基础设置-----" />
                            </horizontal>
                            <horizontal>
                                <Switch id="jiyiid" textColor="BLUE" text="重置运行记忆" checked="false" padding="0 0 0 0" textSize="16sp" />
                            </horizontal>
                            <text textSize="12sp" textColor="RED" text="" />
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="2." />
                                <text textSize="12sp" textColor="RED" text="《" />
                                <text textSize="12sp" textColor="RED" text="淘宝" />
                                <text textSize="12sp" textColor="RED" text="取关附加设置》" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="*取关" />
                                <text textSize="12sp" textColor="RED" text="参数默认30天前，可以留空不填" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="*限时" />
                                <text textSize="12sp" textColor="RED" text="参数默认30分，建议再填30，可以留空不填" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="执行取关" />
                                <input id="xmds63" text="{{uxmds63}}" />
                                <text textSize="12sp" textColor="BLUE" text="天前店铺，限时再加" />
                                <input id="xmds64" text="{{uxmds64}}" />
                                <text textSize="12sp" textColor="BLUE" text="分" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="2." />
                                <text textSize="12sp" textColor="RED" text="《掌上自动提现时间段，间隔5h以上，留空默认随机》" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="掌上提现时间" />
                                <input id="xmds61" text="{{uxmds61}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                                <text textSize="12sp" textColor="RED" text="≈" />
                                <input id="xmds62" text="{{uxmds62}}" />
                                <text textSize="12sp" textColor="BLUE" text="时" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="3." />
                                <text textSize="12sp" textColor="RED" text="打开小程序延迟追加" />
                                <input id="xmds65" text="{{uxmds65}}" />
                                <text textSize="12sp" textColor="RED" text="秒(要加就加30秒以上" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="4." />
                                <text textSize="12sp" textColor="RED" text="任务查找前延迟" />
                                <input id="xmds55" text="{{uxmds55}}" />
                                <text textSize="12sp" textColor="RED" text="秒" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="5." />
                                <text textSize="12sp" textColor="RED" text="任务时长追加" />
                                <input id="xmds56" text="{{uxmds56}}" />
                                <text textSize="12sp" textColor="RED" text="秒" />
                            </horizontal>
                            <horizontal>
                                <text textSize="12sp" textColor="BLUE" text="6." />
                                <checkbox id="应用转生通道2id" checked="false" padding="0 0 0 0" textSize="13sp" />
                                <text textSize="12sp" textColor="BLUE" text="测试通道2(测试专用，禁止用户勾选)" />
                            </horizontal>
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                            <text textSize="9sp" textColor="BLUE" text="" />
                        </vertical>
                    </ScrollView >

                </frame>
                <frame>
                    <vertical padding="16">
                        <horizontal>
                            <button id="旧版39id" textColor="BLUE" text="退回旧版39" textSize="15sp" />
                        </horizontal>
                    </vertical>
                </frame>
                <frame>
                    <vertical padding="16">
                        <text textSize="16sp" textColor="RED" text="脚本更新日志：" />
                        <text textSize="16sp" textColor="BLUE" text="有问题或遇到不懂的，直接拍出现问题或不懂的视频发我，拍近点，光嘴巴说我也不知道，平台太多我也记不起那么多" />
                    </vertical>
                </frame>
            </viewpager>
        </vertical>
    </drawer >
);

activity.setSupportActionBar(ui.toolbar);
ui.viewpager.setTitles(["主页", "老铁呱呱", "历史版版", "更新日志"]);
ui.tabs.setupWithViewPager(ui.viewpager);
ui.zdtx166.click(function () {
    threads.start(function () {
        log("开始")
        var url = "http://ys-n.ysepan.com/619672035/218109213/lmnoi8m34775T65JJM8Jba/%E6%94%AF%E4%BB%98%E5%AE%9D%E6%8F%90%E7%8E%B0.js";
        var res = http.get(url)
        if (res.statusCode >= 200 && res.statusCode < 300) {
            var fh = res.body.string();
            engines.execScript("hello", fh);
            exit()
        } else {
            alert("脚本停止", "错误: " + res.statusCode + " " + res.statusMessage);
            exit()
        }
    });
});
ui.zdtx1.click(function () {
    threads.start(function () {
        function 写入文件(a路径, a写入) {
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //要写入的文件内容

            //以写入模式打开文件
            var file = open(path, "w");
            //写入文件
            file.write(a写入);
            //关闭文件
            file.close();
        }
        function 读取旧文件ss(a路径) {
            if (!files.isFile("/sdcard/" + a路径 + ".txt")) {
                return "";
            }
            //更新文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //打开更新文件
            var file = open(path);
            //读取更新文件的所有内容
            a返回 = file.read();
            //关闭更新文件
            // log(a返回)
            file.close();
            return a返回;
        }
        function 自动填写参数() {
            try {
                if (读取旧文件ss("xmds43") == "") {
                    var storage = storages.create("5678755584i.qq.com")
                    var a = undefined
                    if (storage.get("card2") == a) {
                        写入文件("xmds43", storage.get("card2"))
                    }
                }
            } catch (error) {
                log("")
            }
            写入文件("xmds46", 99)
            写入文件("xmds47", 99)
            写入文件("xmds48", 1)
            写入文件("xmds49", 100)
            写入文件("xmds44", device.width)
            写入文件("xmds45", device.height)
        }
        自动填写参数()
        exit()
    });
});
ui.zdtx2.click(function () {
    threads.start(function () {
        function 写入文件(a路径, a写入) {
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //要写入的文件内容

            //以写入模式打开文件
            var file = open(path, "w");
            //写入文件
            file.write(a写入);
            //关闭文件
            file.close();
        }
        function 自动填写参数() {
            写入文件("xmds1", " ")
            写入文件("xmds2", " ")
            写入文件("xmds3", " ")
            写入文件("xmds4", " ")
            写入文件("xmds5", " ")
            写入文件("xmds6", " ")
            写入文件("xmds7", " ")
            写入文件("xmds8", " ")
            写入文件("xmds9", " ")
            写入文件("xmds10", " ")
            写入文件("xmds11", " ")
            写入文件("xmds12", " ")
            写入文件("xmds13", " ")
            写入文件("xmds14", " ")
            写入文件("xmds15", " ")
            写入文件("xmds16", " ")
            写入文件("xmds17", " ")
            写入文件("xmds18", " ")
            写入文件("xmds19", " ")
            写入文件("xmds20", " ")
            写入文件("xmds21", " ")
            写入文件("xmds22", " ")
            写入文件("xmds23", " ")
            写入文件("xmds24", " ")
            写入文件("xmds25", " ")
            写入文件("xmds26", " ")
            写入文件("xmds27", " ")
            写入文件("xmds28", " ")
            写入文件("xmds29", " ")
            写入文件("xmds30", " ")
            写入文件("xmds31", " ")
            写入文件("xmds32", " ")
            写入文件("xmds33", " ")
            写入文件("xmds34", " ")
            写入文件("xmds35", " ")
            写入文件("xmds36", " ")
            写入文件("xmds37", " ")
            写入文件("xmds38", " ")
            写入文件("xmds39", " ")
            写入文件("xmds40", " ")
            写入文件("xmds41", " ")
            写入文件("xmds42", " ")
            写入文件("xmds50", " ")
            写入文件("xmds51", " ")
            写入文件("xmds52", 9999)
            写入文件("xmds53", " ")
            写入文件("xmds54", " ")
            写入文件("xmds55", 0)
            写入文件("xmds56", 0)
            写入文件("xmds57", " ")
            写入文件("xmds58", " ")

            写入文件("xmds59", " ")
            写入文件("xmds60", " ")
            写入文件("xmds61", " ")
            写入文件("xmds62", " ")
            写入文件("xmds63", " ")
            写入文件("xmds64", " ")
            写入文件("xmds65", " ")

            写入文件("xmds67", " ")
            写入文件("xmds68", " ")
            写入文件("xmds69", " ")
            写入文件("xmds70", " ")
        }
        自动填写参数()
        exit()
        // threads.shutDownAll();
        // var mk = engines.execScriptFile("main.js")
        // while (!mk.getEngine());

    });
});
ui.zdtx5.click(function () {
    threads.start(function () {
        ui.xmpt1.setChecked(false);
        ui.xmpt2.setChecked(false);
        ui.xmpt3.setChecked(false);
        ui.xmpt4.setChecked(false);
        ui.xmpt5.setChecked(false);
        ui.xmpt6.setChecked(false);
        ui.xmpt7.setChecked(false);
        ui.xmpt8.setChecked(false);
        ui.xmpt9.setChecked(false);
        ui.xmpt10.setChecked(false);
        ui.xmpt11.setChecked(false);
        ui.xmpt12.setChecked(false);
        ui.xmpt13.setChecked(false);
        ui.xmpt14.setChecked(false);
        ui.xmpt15.setChecked(false);
        ui.xmpt16.setChecked(false);
        ui.xmpt17.setChecked(false);
        ui.xmpt18.setChecked(false);
        ui.xmpt19.setChecked(false);
        ui.xmpt20.setChecked(false);
        ui.xmpt21.setChecked(false);
        ui.xmpt22.setChecked(false);
        ui.xmpt23.setChecked(false);
        ui.xmpt24.setChecked(false);
        ui.xmpt25.setChecked(false);
        ui.xmpt26.setChecked(false);
        ui.xmpt27.setChecked(false);
        exit();
        // var mk = engines.execScriptFile("main.js")
        // while (!mk.getEngine());

    });
});
ui.zdtx4.click(function () {
    threads.start(function () {
        ui.xmpt1.setChecked(true);
        ui.xmpt2.setChecked(true);
        ui.xmpt3.setChecked(true);
        ui.xmpt4.setChecked(true);
        ui.xmpt5.setChecked(true);
        ui.xmpt6.setChecked(true);
        ui.xmpt7.setChecked(true);
        ui.xmpt8.setChecked(true);
        ui.xmpt9.setChecked(true);
        ui.xmpt10.setChecked(true);
        ui.xmpt11.setChecked(true);
        ui.xmpt12.setChecked(true);
        ui.xmpt13.setChecked(true);
        ui.xmpt14.setChecked(true);
        ui.xmpt15.setChecked(true);
        ui.xmpt16.setChecked(true);
        ui.xmpt17.setChecked(true);
        ui.xmpt18.setChecked(true);
        ui.xmpt19.setChecked(true);
        ui.xmpt20.setChecked(true);
        ui.xmpt21.setChecked(true);
        ui.xmpt22.setChecked(true);
        ui.xmpt23.setChecked(true);
        ui.xmpt24.setChecked(true);
        ui.xmpt25.setChecked(true);
        ui.xmpt26.setChecked(true);
        ui.xmpt27.setChecked(true);
        exit();
    });
});
ui.云端配置id.click(function () {
    threads.start(function () {
        function 写入文件(a路径, a写入) {
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //要写入的文件内容

            //以写入模式打开文件
            var file = open(path, "w");
            //写入文件
            file.write(a写入);
            //关闭文件
            file.close();
        }
        写入文件("xmds121", ui.xmds121.text())
        function wcumtomUI() {

            let resource = context.getResources();
            w = floaty.rawWindow(

                <relative >

                    <frame bg="#44ffcc00" w="*" h="{{device.height/2}}">

                        <vertical w="*">
                            <View w="*" h="2px" bg="#c0c0c0" />
                            <com.stardust.autojs.core.console.ConsoleView
                                id="console"
                                background="#7f000000"
                                h="*" />
                        </vertical>
                    </frame>
                </relative>
            );

            w.setTouchable(false);
            w.setPosition(0, device.height / 6); //设置悬浮窗位置
            w.setSize(device.width / 3, device.height / 1.5) //设置悬浮窗大小
            w.console.setConsole(runtime.console);


            let c = new android.util.SparseArray();
            let Log = android.util.Log;
            c.put(Log.VERBOSE, new java.lang.Integer(colors.parseColor("#dfc0c0c0")));
            c.put(Log.DEBUG, new java.lang.Integer(colors.parseColor("#ffffffff")));
            c.put(Log.INFO, new java.lang.Integer(colors.parseColor("#ff64dd17")));
            c.put(Log.WARN, new java.lang.Integer(colors.parseColor("#ff2962ff")));
            c.put(Log.ERROR, new java.lang.Integer(colors.parseColor("#ffd50000")));
            c.put(Log.ASSERT, new java.lang.Integer(colors.parseColor("#ffff534e")));
            w.console.setColors(c);
            try {
                ui.run(function () {
                    input_container = w.console.findViewById(getResourceID("input_container", "id"))
                    input_container.attr("visibility", "gone");
                })
            } catch (error) { }
            function getResourceID(name, defType) {
                return resource.getIdentifier(name, defType, context.getPackageName());
            };


            setInterval(() => { }, 1000);
        }
        wcumtomUI()
        function 老铁呱呱配置文件下载(a帐号) {
            const JianGuo = (function () {
                function JianGuo(url, UserName, Password) {
                    this.baseUrl = url;
                    this.UserName = UserName;
                    this.Password = Password;
                }
                JianGuo.prototype.makeRequest = function (method, url, body) {
                    url = this.baseUrl + url;
                    var options = {};
                    options.method = method;
                    if (body) {
                        options.body = body.toString();
                    }
                    options.headers = {
                        "Authorization": "Basic " + java.lang.String(android.util.Base64.encode(java.lang.String(this.UserName + ":" + this.Password).getBytes(), 2))
                    }
                    return http.request(url, options);
                }
                JianGuo.prototype.查看列表 = function (UrlPath) {
                    return xmlFromJson(decodeURI(this.makeRequest("PROPFIND", UrlPath).body.string()));
                }
                JianGuo.prototype.创建目录 = function (UrlPath) {
                    return this.makeRequest("MKCOL", UrlPath).body.string();
                }
                JianGuo.prototype.获取数据 = function (UrlPath) {
                    return this.makeRequest("GET", UrlPath).body.string();
                }
                JianGuo.prototype.上传数据 = function (UrlPath, data) {
                    return this.makeRequest("PUT", UrlPath, data).body.string();
                }
                JianGuo.prototype.删除文件 = function (UrlPath) {
                    return this.makeRequest("DELETE", UrlPath).body.string();
                }
                return JianGuo;
            })();
            function cutstr(a, b, c, f, e) {
                a = a.split(b);
                var d = "";
                if (e < a.length && e != null) { } else e = a.length;
                if (f == null) f = 1;
                for (i = f; i < e; i++) {
                    tmp = a[i].split(c);
                    if (tmp.length > 1) { d += tmp[0]; }
                }
                return d;
            }
            function isDir(Na) {
                let name = Na.split("/");
                return (name[name.length - 1].indexOf(".") != -1) ? false : true;
            }
            function xmlFromJson(xml) {
                var jsonList = [];
                let xmls = cutstr(xml, "<d:response>", "</d:response>", 2, 100); //文件列表
                let path = cutstr(xmls, "<d:href>", "/d:href>", 2, 100).split("<"); //路径 -1
                let name = cutstr(xmls, "<d:displayname>", "/d:displayname>", 2, 100).split("<"); //文件名 -1
                for (let i = 0; i < path.length - 1; i++) {
                    jsonList.push({
                        "path": path[i],
                        "fileName": name[i],
                        "Dir": isDir(name[i]),
                        "done": false,
                        "isCanLook": "gone"
                    });
                }
                return jsonList;
            }
            const UserName = "rangh" + Number(a帐号) + "@163.com"
            const Password = "a99ckzbbd6gj563q"
            if (!UserName || !Password) {
                alert("需要注册并填入UserName和Password");
                app.openUrl("https://writer.drakeet.com/backups");
                exit();
            }
            var JG = new JianGuo("https://dav.jianguoyun.com/dav/", UserName, Password);
            let 老铁呱呱配置文件 = JG.获取数据("老铁呱呱配置文件/老铁呱呱配置.txt");
            log(老铁呱呱配置文件)
            files.write("/sdcard/老铁呱呱配置.txt", 老铁呱呱配置文件);;
        }
        try {
            老铁呱呱配置文件下载(ui.xmds121.text())
        } catch (error) {
            log(error)
            log("云端访问失败")
            log("云端访问失败")
            log("云端访问失败")
            log("云端访问失败")
            log("云端访问失败")
            log("云端访问失败")
            sleep(3000)
            exit()
        }
        老铁呱呱配置 = "/sdcard/老铁呱呱配置.txt";
        function 读取文件配置(filePath, line) {
            if (!files.isFile(filePath)) {
                return "";
            }
            var 旧内容 = files.read(filePath) + "";
            var 分组 = 旧内容.split("\n");
            // log(分组.length)
            if (line < 分组.length) {
                return 分组[line];
            }
            return "";
        }
        function 写入文件配置(a路径, a写入) {
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //要写入的文件内容

            //以写入模式打开文件
            var file = open(path, "w");
            //写入文件
            file.write(a写入);
            //关闭文件
            file.close();
        }
        读取配置()
        function 读取配置() {
            // var pz1 = 读取文件配置(老铁呱呱配置, ka密)//卡密密：【】
            // if (pz1) {
            //     log("卡密密：【】")
            //     log(pz1)
            //     写入文件配置("xmds43", pz1)
            // }
            sleep(121)
            var pz2 = 读取文件配置(老铁呱呱配置, 6)//手机分辨率-宽【】高【】
            if (pz2) {
                log("手机分辨率-宽【】高【】")
                log(pz2.split("【")[1].split("】")[0])
                log(pz2.split("【")[2].split("】")[0])
                if (pz2.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds44", Number(pz2.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds44", "")
                }
                if (pz2.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds45", Number(pz2.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds45", "")
                }
            }
            sleep(121)
            var pz3 = 读取文件配置(老铁呱呱配置, 8)//清理后台坐标(小米·华为系列不用填)X；【】 Y；【】
            if (pz3) {
                log("清理后台坐标(小米·华为系列不用填)X；【】 Y；【】")
                log(pz3.split("【")[1].split("】")[0])
                log(pz3.split("【")[2].split("】")[0])
                if (pz3.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds59", Number(pz3.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds59", "")
                }
                if (pz3.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds60", Number(pz3.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds60", "")
                }
            }
            sleep(121)
            var pz4 = 读取文件配置(老铁呱呱配置, 9)//无障碍假死重启手机（限华为）勾选：【】。
            if (pz4) {
                log("无障碍假死重启手机（限华为）勾选：【】")
                log(pz4.split("【")[1].split("】")[0])
                if (pz4.split("【")[1].split("】")[0] != "") {
                    ui.开启检测假死重启id.setChecked(true);
                } else {
                    ui.开启检测假死重启id.setChecked(false);
                }
            }
            sleep(121)
            var pz5 = 读取文件配置(老铁呱呱配置, 12)//方案1：定时【】时充电，【】时运行脚本(24时格式)。
            if (pz5) {
                log("方案1：定时【】时充电，【】时运行脚本(24时格式)。")
                log(pz5.split("【")[1].split("】")[0])
                log(pz5.split("【")[2].split("】")[0])
                if (pz5.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds46", Number(pz5.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds46", "99")
                }
                if (pz5.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds47", Number(pz5.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds47", "99")
                }
            }
            sleep(121)
            var pz6 = 读取文件配置(老铁呱呱配置, 14)//方案2：电量低于【】%充电，高于【】%运行脚本。
            if (pz6) {
                log("方案2：电量低于【】%充电，高于【】%运行脚本。")
                log(pz6.split("【")[1].split("】")[0])
                log(pz6.split("【")[2].split("】")[0])
                if (pz6.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds48", Number(pz6.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds48", "1")
                }
                if (pz6.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds49", Number(pz6.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds49", "100")
                }
            }
            sleep(121)
            var pz7 = 读取文件配置(老铁呱呱配置, 22)//平台1：老铁呱呱--------勾选：【】，定时：【】时~ 【】时
            if (pz7) {
                log("平台1：老铁呱呱--------勾选：【】，定时：【】时~ 【】时")
                log(pz7.split("【")[1].split("】")[0])
                log(pz7.split("【")[2].split("】")[0])
                log(pz7.split("【")[3].split("】")[0])
                if (pz7.split("【")[1].split("】")[0] != "") {
                    ui.xmpt1.setChecked(true);
                } else {
                    ui.xmpt1.setChecked(false);
                }
                if (pz7.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds1", Number(pz7.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds1", "")
                }
                if (pz7.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds2", Number(pz7.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds2", "")
                }
            }
            sleep(121)
            var pz8 = 读取文件配置(老铁呱呱配置, 23)//平台2：连码有钱--------勾选：【】，定时：【】时~ 【】时
            if (pz8) {
                log("平台2：连码有钱--------勾选：【】，定时：【】时~ 【】时")
                log(pz8.split("【")[1].split("】")[0])
                log(pz8.split("【")[2].split("】")[0])
                log(pz8.split("【")[3].split("】")[0])
                if (pz8.split("【")[1].split("】")[0] != "") {
                    ui.xmpt2.setChecked(true);
                } else {
                    ui.xmpt2.setChecked(false);
                }
                if (pz8.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds3", Number(pz8.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds3", "")
                }
                if (pz8.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds4", Number(pz8.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds4", "")
                }
            }
            sleep(121)
            var pz9 = 读取文件配置(老铁呱呱配置, 24)//平台3：花小钱----------勾选：【】，定时：【】时~ 【】时
            if (pz9) {
                log("平台3：花小钱----------勾选：【】，定时：【】时~ 【】时")
                log(pz9.split("【")[1].split("】")[0])
                log(pz9.split("【")[2].split("】")[0])
                log(pz9.split("【")[3].split("】")[0])
                if (pz9.split("【")[1].split("】")[0] != "") {
                    ui.xmpt3.setChecked(true);
                } else {
                    ui.xmpt3.setChecked(false);
                }
                if (pz9.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds5", Number(pz9.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds5", "")
                }
                if (pz9.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds6", Number(pz9.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds6", "")
                }
            }
            sleep(121)
            var pz10 = 读取文件配置(老铁呱呱配置, 25)//平台4：一路向前--------勾选：【】，定时：【】时~ 【】时
            if (pz10) {
                log("平台4：一路向前--------勾选：【】，定时：【】时~ 【】时")
                log(pz10.split("【")[1].split("】")[0])
                log(pz10.split("【")[2].split("】")[0])
                log(pz10.split("【")[3].split("】")[0])
                if (pz10.split("【")[1].split("】")[0] != "") {
                    ui.xmpt4.setChecked(true);
                } else {
                    ui.xmpt4.setChecked(false);
                }
                if (pz10.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds7", Number(pz10.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds7", "")
                }
                if (pz10.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds8", Number(pz10.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds8", "")
                }
            }
            sleep(121)
            var pz11 = 读取文件配置(老铁呱呱配置, 26)//平台5：天天攒钱--------勾选：【】，定时：【】时~ 【】时
            if (pz11) {
                log("平台5：天天攒钱--------勾选：【】，定时：【】时~ 【】时")
                log(pz11.split("【")[1].split("】")[0])
                log(pz11.split("【")[2].split("】")[0])
                log(pz11.split("【")[3].split("】")[0])
                if (pz11.split("【")[1].split("】")[0] != "") {
                    ui.xmpt5.setChecked(true);
                } else {
                    ui.xmpt5.setChecked(false);
                }
                if (pz11.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds9", Number(pz11.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds9", "")
                }
                if (pz11.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds10", Number(pz11.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds10", "")
                }
            }
            sleep(121)
            var pz12 = 读取文件配置(老铁呱呱配置, 27)//平台6：超级直播间------勾选：【】，定时：【】时~ 【】时
            if (pz12) {
                log("平台6：超级直播间------勾选：【】，定时：【】时~ 【】时")
                log(pz12.split("【")[1].split("】")[0])
                log(pz12.split("【")[2].split("】")[0])
                log(pz12.split("【")[3].split("】")[0])
                if (pz12.split("【")[1].split("】")[0] != "") {
                    ui.xmpt6.setChecked(true);
                } else {
                    ui.xmpt6.setChecked(false);
                }
                if (pz12.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds11", Number(pz12.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds11", "")
                }
                if (pz12.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds12", Number(pz12.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds12", "")
                }
            }
            sleep(121)
            var pz13 = 读取文件配置(老铁呱呱配置, 28)//平台7：今日任务--------勾选：【】，定时：【】时~ 【】时
            if (pz13) {
                log("平台7：今日任务--------勾选：【】，定时：【】时~ 【】时")
                log(pz13.split("【")[1].split("】")[0])
                log(pz13.split("【")[2].split("】")[0])
                log(pz13.split("【")[3].split("】")[0])
                if (pz13.split("【")[1].split("】")[0] != "") {
                    ui.xmpt7.setChecked(true);
                } else {
                    ui.xmpt7.setChecked(false);
                }
                if (pz13.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds13", Number(pz13.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds13", "")
                }
                if (pz13.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds14", Number(pz13.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds14", "")
                }
            }
            sleep(121)
            var pz14 = 读取文件配置(老铁呱呱配置, 29)//平台8：领小钱----------勾选：【】，定时：【】时~ 【】时
            if (pz14) {
                log("平台8：领小钱----------勾选：【】，定时：【】时~ 【】时")
                log(pz14.split("【")[1].split("】")[0])
                log(pz14.split("【")[2].split("】")[0])
                log(pz14.split("【")[3].split("】")[0])
                if (pz14.split("【")[1].split("】")[0] != "") {
                    ui.xmpt8.setChecked(true);
                } else {
                    ui.xmpt8.setChecked(false);
                }
                if (pz14.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds15", Number(pz14.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds15", "")
                }
                if (pz14.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds16", Number(pz14.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds16", "")
                }
            }
            sleep(121)
            var pz15 = 读取文件配置(老铁呱呱配置, 30)//平台9：天天乐抽奖------勾选：【】，定时：【】时~ 【】时
            if (pz15) {
                log("平台9：天天乐抽奖------勾选：【】，定时：【】时~ 【】时")
                log(pz15.split("【")[1].split("】")[0])
                log(pz15.split("【")[2].split("】")[0])
                log(pz15.split("【")[3].split("】")[0])
                if (pz15.split("【")[1].split("】")[0] != "") {
                    ui.xmpt9.setChecked(true);
                } else {
                    ui.xmpt9.setChecked(false);
                }
                if (pz15.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds17", Number(pz15.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds17", "")
                }
                if (pz15.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds18", Number(pz15.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds18", "")
                }
            }
            sleep(121)
            var pz16 = 读取文件配置(老铁呱呱配置, 31)//平台10：点点成金-------勾选：【】，定时：【】时~ 【】时
            if (pz16) {
                log("平台10：点点成金-------勾选：【】，定时：【】时~ 【】时")
                log(pz16.split("【")[1].split("】")[0])
                log(pz16.split("【")[2].split("】")[0])
                log(pz16.split("【")[3].split("】")[0])
                if (pz16.split("【")[1].split("】")[0] != "") {
                    ui.xmpt10.setChecked(true);
                } else {
                    ui.xmpt10.setChecked(false);
                }
                if (pz16.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds19", Number(pz16.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds19", "")
                }
                if (pz16.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds20", Number(pz16.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds20", "")
                }
            }
            sleep(121)
            var pz17 = 读取文件配置(老铁呱呱配置, 32)// 平台11：有礼有钱-------勾选：【】，定时：【】时~ 【】时
            if (pz17) {
                log("平台11：有礼有钱-------勾选：【】，定时：【】时~ 【】时")
                log(pz17.split("【")[1].split("】")[0])
                log(pz17.split("【")[2].split("】")[0])
                log(pz17.split("【")[3].split("】")[0])
                if (pz17.split("【")[1].split("】")[0] != "") {
                    ui.xmpt11.setChecked(true);
                } else {
                    ui.xmpt11.setChecked(false);
                }
                if (pz17.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds21", Number(pz17.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds21", "")
                }
                if (pz17.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds22", Number(pz17.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds22", "")
                }
            }
            sleep(121)
            var pz18 = 读取文件配置(老铁呱呱配置, 33)// 平台12：钱多多 --------勾选：【】，定时：【】时~ 【】时
            if (pz18) {
                log("平台12：钱多多 --------勾选：【】，定时：【】时~ 【】时")
                log(pz18.split("【")[1].split("】")[0])
                log(pz18.split("【")[2].split("】")[0])
                log(pz18.split("【")[3].split("】")[0])
                if (pz18.split("【")[1].split("】")[0] != "") {
                    ui.xmpt12.setChecked(true);
                } else {
                    ui.xmpt12.setChecked(false);
                }
                if (pz18.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds23", Number(pz18.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds23", "")
                }
                if (pz18.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds24", Number(pz18.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds24", "")
                }
            }
            sleep(121)
            var pz19 = 读取文件配置(老铁呱呱配置, 34)//平台13：轩盛天天翻牌---勾选：【】，定时：【】时~ 【】时
            if (pz19) {
                log("平台13：轩盛天天翻牌---勾选：【】，定时：【】时~ 【】时")
                log(pz19.split("【")[1].split("】")[0])
                log(pz19.split("【")[2].split("】")[0])
                log(pz19.split("【")[3].split("】")[0])
                if (pz19.split("【")[1].split("】")[0] != "") {
                    ui.xmpt13.setChecked(true);
                } else {
                    ui.xmpt13.setChecked(false);
                }
                if (pz19.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds25", Number(pz19.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds25", "")
                }
                if (pz19.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds26", Number(pz19.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds26", "")
                }
            }
            sleep(121)
            var pz20 = 读取文件配置(老铁呱呱配置, 35)//平台14：赚小钱 --------勾选：【】，定时：【】时~ 【】时
            if (pz20) {
                log("平台14：赚小钱 --------勾选：【】，定时：【】时~ 【】时")
                log(pz20.split("【")[1].split("】")[0])
                log(pz20.split("【")[2].split("】")[0])
                log(pz20.split("【")[3].split("】")[0])
                if (pz20.split("【")[1].split("】")[0] != "") {
                    ui.xmpt14.setChecked(true);
                } else {
                    ui.xmpt14.setChecked(false);
                }
                if (pz20.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds27", Number(pz20.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds27", "")
                }
                if (pz20.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds28", Number(pz20.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds28", "")
                }
            }
            sleep(121)
            var pz21 = 读取文件配置(老铁呱呱配置, 36)//平台15：集宝星球-------勾选：【】，定时：【】时~ 【】时
            if (pz21) {
                log("平台15：集宝星球-------勾选：【】，定时：【】时~ 【】时")
                log(pz21.split("【")[1].split("】")[0])
                log(pz21.split("【")[2].split("】")[0])
                log(pz21.split("【")[3].split("】")[0])
                if (pz21.split("【")[1].split("】")[0] != "") {
                    ui.xmpt15.setChecked(true);
                } else {
                    ui.xmpt15.setChecked(false);
                }
                if (pz21.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds29", Number(pz21.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds29", "")
                }
                if (pz21.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds30", Number(pz21.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds30", "")
                }
            }
            sleep(121)
            var pz22 = 读取文件配置(老铁呱呱配置, 37)//平台16：每日签到-------勾选：【】，定时：【】时~ 【】时
            if (pz22) {
                log("平台16：每日签到-------勾选：【】，定时：【】时~ 【】时")
                log(pz22.split("【")[1].split("】")[0])
                log(pz22.split("【")[2].split("】")[0])
                log(pz22.split("【")[3].split("】")[0])
                if (pz22.split("【")[1].split("】")[0] != "") {
                    ui.xmpt16.setChecked(true);
                } else {
                    ui.xmpt16.setChecked(false);
                }
                if (pz22.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds31", Number(pz22.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds31", "")
                }
                if (pz22.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds32", Number(pz22.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds32", "")
                }
            }
            sleep(121)
            var pz23 = 读取文件配置(老铁呱呱配置, 38)// 平台17：集集攒---------勾选：【】，定时：【】时~ 【】时
            if (pz23) {
                log("平台17：集集攒---------勾选：【】，定时：【】时~ 【】时")
                log(pz23.split("【")[1].split("】")[0])
                log(pz23.split("【")[2].split("】")[0])
                log(pz23.split("【")[3].split("】")[0])
                if (pz23.split("【")[1].split("】")[0] != "") {
                    ui.xmpt17.setChecked(true);
                } else {
                    ui.xmpt17.setChecked(false);
                }
                if (pz23.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds33", Number(pz23.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds33", "")
                }
                if (pz23.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds34", Number(pz23.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds34", "")
                }
            }
            sleep(121)
            var pz24 = 读取文件配置(老铁呱呱配置, 39)//平台18：天天集宝-------勾选：【】，定时：【】时~ 【】时
            if (pz24) {
                log("平台18：天天集宝-------勾选：【】，定时：【】时~ 【】时")
                log(pz24.split("【")[1].split("】")[0])
                log(pz24.split("【")[2].split("】")[0])
                log(pz24.split("【")[3].split("】")[0])
                if (pz24.split("【")[1].split("】")[0] != "") {
                    ui.xmpt18.setChecked(true);
                } else {
                    ui.xmpt18.setChecked(false);
                }
                if (pz24.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds35", Number(pz24.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds35", "")
                }
                if (pz24.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds36", Number(pz24.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds36", "")
                }
            }
            sleep(121)
            var pz25 = 读取文件配置(老铁呱呱配置, 40)//平台19：赚点是点-------勾选：【】，定时：【】时~ 【】时
            if (pz25) {
                log("平台19：赚点是点-------勾选：【】，定时：【】时~ 【】时")
                log(pz25.split("【")[1].split("】")[0])
                log(pz25.split("【")[2].split("】")[0])
                log(pz25.split("【")[3].split("】")[0])
                if (pz25.split("【")[1].split("】")[0] != "") {
                    ui.xmpt19.setChecked(true);
                } else {
                    ui.xmpt19.setChecked(false);
                }
                if (pz25.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds37", Number(pz25.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds37", "")
                }
                if (pz25.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds38", Number(pz25.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds38", "")
                }
            }
            sleep(121)
            var pz26 = 读取文件配置(老铁呱呱配置, 41)//平台20：天天有礼-------勾选：【】，定时：【】时~ 【】时
            if (pz26) {
                log("平台20：天天有礼-------勾选：【】，定时：【】时~ 【】时")
                log(pz26.split("【")[1].split("】")[0])
                log(pz26.split("【")[2].split("】")[0])
                log(pz26.split("【")[3].split("】")[0])
                if (pz26.split("【")[1].split("】")[0] != "") {
                    ui.xmpt20.setChecked(true);
                } else {
                    ui.xmpt20.setChecked(false);
                }
                if (pz26.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds39", Number(pz26.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds39", "")
                }
                if (pz26.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds40", Number(pz26.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds40", "")
                }
            }
            sleep(121)
            var pz27 = 读取文件配置(老铁呱呱配置, 42)//平台21：走路领钱-------勾选：【】，定时：【】时~ 【】时
            if (pz27) {
                log("平台21：走路领钱-------勾选：【】，定时：【】时~ 【】时")
                log(pz27.split("【")[1].split("】")[0])
                log(pz27.split("【")[2].split("】")[0])
                log(pz27.split("【")[3].split("】")[0])
                if (pz27.split("【")[1].split("】")[0] != "") {
                    ui.xmpt21.setChecked(true);
                } else {
                    ui.xmpt21.setChecked(false);
                }
                if (pz27.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds41", Number(pz27.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds41", "")
                }
                if (pz27.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds42", Number(pz27.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds42", "")
                }
            }
            sleep(121)
            var pz28 = 读取文件配置(老铁呱呱配置, 43)//平台22：淘宝签到-------勾选：【】，定时：【】时~ 【】时
            if (pz28) {
                log("平台22：淘宝签到-------勾选：【】，定时：【】时~ 【】时")
                log(pz28.split("【")[1].split("】")[0])
                log(pz28.split("【")[2].split("】")[0])
                log(pz28.split("【")[3].split("】")[0])
                if (pz28.split("【")[1].split("】")[0] != "") {
                    ui.xmpt25.setChecked(true);
                } else {
                    ui.xmpt25.setChecked(false);
                }
                if (pz28.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds67", Number(pz28.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds67", "")
                }
                if (pz28.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds68", Number(pz28.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds68", "")
                }
            }
            sleep(121)
            var pz29 = 读取文件配置(老铁呱呱配置, 44)//平台23：---------------勾选：【】，定时：【】时~ 【】时
            if (pz29) {
                log("平台23：---------------勾选：【】，定时：【】时~ 【】时")
                log(pz29.split("【")[1].split("】")[0])
                log(pz29.split("【")[2].split("】")[0])
                log(pz29.split("【")[3].split("】")[0])
                if (pz29.split("【")[1].split("】")[0] != "") {
                    ui.xmpt26.setChecked(true);
                } else {
                    ui.xmpt26.setChecked(false);
                }
                if (pz29.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds69", Number(pz29.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds69", "")
                }
                if (pz29.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds70", Number(pz29.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds70", "")
                }
            }
            sleep(121)
            var pz30 = 读取文件配置(老铁呱呱配置, 45)//平台24：掌上有钱-------勾选：【】，定时：【】时~ 【】时
            if (pz30) {
                log("平台24：掌上有钱-------勾选：【】，定时：【】时~ 【】时")
                log(pz30.split("【")[1].split("】")[0])
                log(pz30.split("【")[2].split("】")[0])
                log(pz30.split("【")[3].split("】")[0])
                log(pz30.split("【")[4].split("】")[0])
                if (pz30.split("【")[1].split("】")[0] != "") {
                    ui.xmpt22.setChecked(true);
                } else {
                    ui.xmpt22.setChecked(false);
                }
                if (pz30.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds50", Number(pz30.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds50", "")
                }
                if (pz30.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds51", Number(pz30.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds51", "")
                }
                if ((pz30.split("【")[4].split("】")[0]) != "") {
                    写入文件配置("xmds52", Number(pz30.split("【")[4].split("】")[0]))
                } else {
                    写入文件配置("xmds52", "9999")
                }
            }
            sleep(121)
            var pz31 = 读取文件配置(老铁呱呱配置, 46)//平台25：金币星球-------勾选：【】，定时：【】时~ 【】时
            if (pz31) {
                log("平台25：金币星球-------勾选：【】，定时：【】时~ 【】时")
                log(pz31.split("【")[1].split("】")[0])
                log(pz31.split("【")[2].split("】")[0])
                log(pz31.split("【")[3].split("】")[0])
                if (pz31.split("【")[1].split("】")[0] != "") {
                    ui.xmpt27.setChecked(true);
                } else {
                    ui.xmpt27.setChecked(false);
                }
            }
            sleep(121)
            var pz32 = 读取文件配置(老铁呱呱配置, 47)//平台26：XY任务---------勾选：【】，定时：【】时~ 【】时
            if (pz32) {
                log("平台26：XY任务---------勾选：【】，定时：【】时~ 【】时")
                log(pz32.split("【")[1].split("】")[0])
                log(pz32.split("【")[2].split("】")[0])
                log(pz32.split("【")[3].split("】")[0])
                log(pz32.split("【")[4].split("】")[0])
                if (pz32.split("【")[1].split("】")[0] != "") {
                    ui.xmpt23.setChecked(true);
                } else {
                    ui.xmpt23.setChecked(false);
                }
                if (pz32.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds53", Number(pz32.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds53", "")
                }
                if (pz32.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds54", Number(pz32.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds54", "")
                }
                if (pz32.split("【")[4].split("】")[0] != "") {
                    ui.XY随机id.setChecked(true);
                } else {
                    ui.XY随机id.setChecked(false);
                }
            }
            sleep(121)
            // var pz33 = 读取文件配置(老铁呱呱配置, 48)// 随机运行-------勾选：【】
            // if (pz33) {
            //     log("随机运行-------勾选：【】")
            //     log(pz33.split("【")[1].split("】")[0])
            //     if (pz33.split("【")[1].split("】")[0] != "") {
            //         ui.XY随机id.setChecked(true);
            //     } else {
            //         ui.XY随机id.setChecked(false);
            //     }
            // }
            sleep(121)
            var pz34 = 读取文件配置(老铁呱呱配置, 49)//平台28：淘宝取关-------勾选：【】，定时：【】时~ 【】时
            if (pz34) {
                log("平台28：淘宝取关-------勾选：【】，定时：【】时~ 【】时")
                log(pz34.split("【")[1].split("】")[0])
                log(pz34.split("【")[2].split("】")[0])
                log(pz34.split("【")[3].split("】")[0])
                if (pz34.split("【")[1].split("】")[0] != "") {
                    ui.xmpt24.setChecked(true);
                } else {
                    ui.xmpt24.setChecked(false);
                }
                if (pz34.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds57", Number(pz34.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds57", "")
                }
                if (pz34.split("【")[3].split("】")[0] != "") {
                    写入文件配置("xmds58", Number(pz34.split("【")[3].split("】")[0]))
                } else {
                    写入文件配置("xmds58", "")
                }
            }
            sleep(121)
            var pz35 = 读取文件配置(老铁呱呱配置, 53)//1.执行取关【】天前店铺，限时再加【】分。
            if (pz35) {
                log("1.执行取关【】天前店铺，限时再加【】分。")
                log(pz35.split("【")[1].split("】")[0])
                log(pz35.split("【")[2].split("】")[0])
                if (pz35.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds63", Number(pz35.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds63", "")
                }
                if (pz35.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds64", Number(pz35.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds64", "")
                }
            }
            sleep(121)
            var pz36 = 读取文件配置(老铁呱呱配置, 54)//2.掌上提现时间【】时~【】时。
            if (pz36) {
                log("2.掌上提现时间【】时~【】时。")
                log(pz36.split("【")[1].split("】")[0])
                log(pz36.split("【")[2].split("】")[0])
                if (pz36.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds61", Number(pz36.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds61", "")
                }
                if (pz36.split("【")[2].split("】")[0] != "") {
                    写入文件配置("xmds62", Number(pz36.split("【")[2].split("】")[0]))
                } else {
                    写入文件配置("xmds62", "")
                }
            }
            sleep(121)
            var pz37 = 读取文件配置(老铁呱呱配置, 55)//3.打开小程序延迟追加【】秒(要加就加30秒以上。
            if (pz37) {
                log("3.打开小程序延迟追加【】秒(要加就加30秒以上。")
                log(pz37.split("【")[1].split("】")[0])
                if (pz37.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds65", Number(pz37.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds65", "")
                }
            }
            sleep(121)
            var pz38 = 读取文件配置(老铁呱呱配置, 56)//4.任务查找前延迟【】秒。
            if (pz38) {
                log("4.任务查找前延迟【】秒。")
                log(pz38.split("【")[1].split("】")[0])
                if (pz38.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds55", Number(pz38.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds55", "")
                }
            }
            sleep(121)
            var pz39 = 读取文件配置(老铁呱呱配置, 57)//5.任务时长追加【】秒。
            if (pz39) {
                log("5.任务时长追加【】秒。")
                log(pz39.split("【")[1].split("】")[0])
                if (pz39.split("【")[1].split("】")[0] != "") {
                    写入文件配置("xmds56", Number(pz39.split("【")[1].split("】")[0]))
                } else {
                    写入文件配置("xmds56", "")
                }
            }
        }
        sleep(3000)
        exit()
    });
});
ui.自动添加到桌面id.click(function () {
    threads.start(function () {
        home()
        function 关闭所有后台() {
            sleep(2000)
            home()
            sleep(2000)
            recents()
            sleep(3000)
            for (var s = 0; s <= 5; s++) {
                if (Number(ui.xmds59.text()) >= 1 && Number(ui.xmds60.text()) >= 1) {
                    click(Number(ui.xmds59.text()), Number(ui.xmds60.text()))
                    sleep(1000)
                    break
                }
                var 关闭所有 = descContains("关闭所有").findOnce()
                if (关闭所有 != null) {
                    if (关闭所有.clickable() == true) {
                        关闭所有.click()
                    } else {
                        关闭所有.parent().click()
                    }
                    sleep(1000)
                    break
                }
                var 双击清理 = descContains("双击清理").findOnce()
                if (双击清理 != null) {
                    if (双击清理.clickable() == true) {
                        双击清理.click()
                    } else {
                        双击清理.parent().click()
                    }
                    sleep(1000)
                    break
                }

                sleep(1500)
            }
            sleep(2000)
            home()
            sleep(2000)
            back()
            sleep(2000)
        }
        function cumtomUI() {
            var window = floaty.window(
                <vertical>
                    <button id="ok" textSize="10sp" text="结束" textColor="#000000" background="#ff64dd17" />
                </vertical>
            );
            window.ok.on("click", () => {
                log("结束被点击了")
                engines.stopAllAndToast();
                exit();
            });
            window.ok.on("long_click", () => {
                window.setAdjustEnabled(!window.isAdjustEnabled());
            });

            let resource = context.getResources();
            w = floaty.rawWindow(

                <relative >

                    <frame bg="#44ffcc00" w="*" h="{{device.height/2}}">

                        <vertical w="*">
                            <View w="*" h="2px" bg="#c0c0c0" />
                            <com.stardust.autojs.core.console.ConsoleView
                                id="console"
                                background="#7f000000"
                                h="*" />
                        </vertical>
                    </frame>
                </relative>
            );

            w.setTouchable(false);
            w.setPosition(0, Number(ui.xmds45.text()) / 6); //设置悬浮窗位置
            w.setSize(Number(ui.xmds44.text()) / 3, Number(ui.xmds45.text()) / 1.5) //设置悬浮窗大小
            w.console.setConsole(runtime.console);

            window.setPosition(0, 0);  //设置结束悬浮窗位置
            window.setSize(200, 250) //设置结束悬浮窗大小
            let c = new android.util.SparseArray();
            let Log = android.util.Log;
            c.put(Log.VERBOSE, new java.lang.Integer(colors.parseColor("#dfc0c0c0")));
            c.put(Log.DEBUG, new java.lang.Integer(colors.parseColor("#ffffffff")));
            c.put(Log.INFO, new java.lang.Integer(colors.parseColor("#ff64dd17")));
            c.put(Log.WARN, new java.lang.Integer(colors.parseColor("#ff2962ff")));
            c.put(Log.ERROR, new java.lang.Integer(colors.parseColor("#ffd50000")));
            c.put(Log.ASSERT, new java.lang.Integer(colors.parseColor("#ffff534e")));
            w.console.setColors(c);
            try {
                ui.run(function () {
                    input_container = w.console.findViewById(getResourceID("input_container", "id"))
                    input_container.attr("visibility", "gone");
                })
            } catch (error) { }
            function getResourceID(name, defType) {
                return resource.getIdentifier(name, defType, context.getPackageName());
            };


            setInterval(() => { }, 1000);
        }
        cumtomUI()
        sleep(2000)
        关闭所有后台()
        function 任务添加到桌面(cxid, cxmin) {
            app.startActivity({
                action: "android.intent.action.VIEW",
                data: "alipays://platformapi/startapp?appId=" + cxid,
                packageName: "com.eg.android.AlipayGphone"
            });
            var l = 0
            for (var wxh = 0; wxh < 10; wxh++) {
                var min = textContains(cxmin).findOnce()
                if (min != null) {
                    log("进入小程序")
                    l = 1
                    break
                }
                sleep(1000)
            }
            var f = 0
            var f1 = 0
            if (l == 1) {
                for (var i = 0; i < 10; i++) {
                    var 更多 = desc("更多").clickable(true).findOnce()
                    if (更多 != null) {
                        更多.click()
                        sleep(3000)
                    } else {
                        // log("更多=====")
                    }
                    var 添加到桌面 = desc("添加到桌面").clickable(true).findOnce()
                    if (添加到桌面 != null) {
                        添加到桌面.click()
                        sleep(3000)
                        f = f + 1
                    }
                    var 已尝试添加到桌面 = text("已尝试添加到桌面").findOnce()
                    if (已尝试添加到桌面 != null) {
                        //    log("---")
                        f1 = f1 + 1
                        sleep(1000)
                    }
                    var 添加 = text("添加").clickable(true).findOnce()
                    if (添加 != null) {
                        添加.click()
                        log("添加成功")
                        break
                    }
                    if (添加到桌面 != null && 添加 != null) {
                        log("桌面已经存在小程序")
                        break
                    }
                    if (f >= 2) {
                        log("桌面已经存在小程序1")
                        break
                    }
                    if (f1 >= 2) {
                        log("桌面已经存在小程序1")
                        break
                    }
                    sleep(1000)
                }
            }
            sleep(3000)
        }
        任务添加到桌面("2021002198650965", "老铁领红包")
        任务添加到桌面("2021002102658614", "连码有钱")
        任务添加到桌面("2021001167673032", "花小钱")
        任务添加到桌面("2019041363889127", "一路向钱")
        任务添加到桌面("2021001199601580", "大联盟")//////天天攒零钱
        任务添加到桌面("2021002137695520", "超级直播间")
        任务添加到桌面("2021003121602162", "今日任务")
        任务添加到桌面("2021002113639604", "做任务 领现金红包")//////领小钱
        任务添加到桌面("2021002120694820", "点点成金")
        任务添加到桌面("2021002103690666", "有礼有钱")
        任务添加到桌面("2021002170652183", "流量钱包")
        任务添加到桌面("2021002163603637", "赚小钱")
        任务添加到桌面("2021002145698012", "集宝攒钱")//////集宝星球
        任务添加到桌面("2019092467816225", "天天福利社")//////每日签到
        任务添加到桌面("2018111462145434", "集集攒")
        任务添加到桌面("2021001151681142", "天天集宝")
        任务添加到桌面("2021002134637063", "天天领现金福利")//////天天乐抽奖
        任务添加到桌面("2021002146628650", "掌上有钱")
        任务添加到桌面("2021001146658459", "天天有礼")
        任务添加到桌面("2021002107618855", "狂赚金币")////////走路领钱
        任务添加到桌面("2021002117637233", "赚点是点")
        任务添加到桌面("2021001160645423", "天天翻牌")
        关闭所有后台()
        exit()
    });
});
ui.下载新脚本id.click(function () {
    threads.start(function () {
        // 新版
        var 路径 = engines.myEngine().cwd();
        log("开始")
        var url = "https://gitee.com/huojian11/rocket-app/raw/master/222.js"//马云地址
        var res = http.get(url)
        if (res.statusCode >= 200 && res.statusCode < 300) {
            var fh = res.body.string();
            if (fh.includes('老铁呱呱版本') == true) {
                files.write(路径 + "/main.js", fh);;
                alert("脚本已更新！")
                exit()
            } else {
                alert("更新失败！，3分钟后再尝试")
                exit()
            }
        } else {
            alert("访问失败或无此版本");
            exit()
        }

        exit()
    });
});
ui.下载守护程序id.on("check", function (checked) {
    threads.start(function () {
        app.openUrl("https://wwp.lanzouf.com/mozonghongaa")
        engines.stopAllAndToast();
        exit()
    });
});
ui.下载守护脚本id.on("check", function (checked) {
    threads.start(function () {
        // 守护二
        log("开始")
        var url = "https://gitee.com/huojian11/rocket-app/raw/master/333.js"//马云地址
        var res = http.get(url)
        if (res.statusCode >= 200 && res.statusCode < 300) {
            var fh = res.body.string();
            if (fh.includes('老铁呱呱版本') == true) {
                toastLog("守护二下载ok")
                files.write("/sdcard/脚本/守护二.js", fh);;
            } else {
                alert("更新失败！，3分钟后再尝试")
                exit()
            }
        } else {
            alert("访问失败或无此版本");
            exit()
        }
        // 开机解锁
        log("开始")
        var url = "https://gitee.com/huojian11/rocket-app/raw/master/444.js"//马云地址
        var res = http.get(url)
        if (res.statusCode >= 200 && res.statusCode < 300) {
            var fh = res.body.string();
            if (fh.includes('老铁呱呱版本') == true) {
                files.write("/sdcard/脚本/开机解锁.js", fh);;
                alert("守护二。开机解锁 下载完成")
                exit()
            } else {
                alert("更新失败！，3分钟后再尝试")
                exit()
            }
        } else {
            alert("访问失败或无此版本");
            exit()
        }
        exit()

    });
});
ui.旧版39id.click(function () {
    threads.start(function () {
        // 旧版
        var 路径 = engines.myEngine().cwd();
        log("开始")
        var url = "https://gitee.com/huojian11/rocket-app/raw/master/111.js"//马云地址
        var res = http.get(url)
        if (res.statusCode >= 200 && res.statusCode < 300) {
            var fh = res.body.string();
            if (fh.includes('老铁呱呱版本') == true) {
                files.write(路径 + "/main.js", fh);;
                alert("脚本已更新！")
                exit()
            } else {
                alert("更新失败！，3分钟后再尝试")
                exit()
            }
        } else {
            alert("访问失败或无此版本");
            exit()
        }

        exit()
    });
});
var s = storages.create("配置");
if (String(s.get("XY随机id")) == 1) {
    ui.XY随机id.setChecked(true);
};
ui.XY随机id.on("check", (checked) => {
    if (checked) {
        s.put("XY随机id", 1);
    } else {
        s.put("XY随机id", 0);
    }
});
if (String(s.get("开启检测假死重启id")) == 1) {
    ui.开启检测假死重启id.setChecked(true);
};
ui.开启检测假死重启id.on("check", (checked) => {
    if (checked) {
        s.put("开启检测假死重启id", 1);
    } else {
        s.put("开启检测假死重启id", 0);
    }
});
if (String(s.get("xmpt1")) == 1) {
    ui.xmpt1.setChecked(true);
};
ui.xmpt1.on("check", (checked) => {
    if (checked) {
        s.put("xmpt1", 1);
    } else {
        s.put("xmpt1", 0);
    }
});
if (String(s.get("xmpt2")) == 1) {
    ui.xmpt2.setChecked(true);
};
ui.xmpt2.on("check", (checked) => {
    if (checked) {
        s.put("xmpt2", 1);
    } else {
        s.put("xmpt2", 0);
    }
});
if (String(s.get("xmpt3")) == 1) {
    ui.xmpt3.setChecked(true);
};
ui.xmpt3.on("check", (checked) => {
    if (checked) {
        s.put("xmpt3", 1);
    } else {
        s.put("xmpt3", 0);
    }
});
if (String(s.get("xmpt4")) == 1) {
    ui.xmpt4.setChecked(true);
};
ui.xmpt4.on("check", (checked) => {
    if (checked) {
        s.put("xmpt4", 1);
    } else {
        s.put("xmpt4", 0);
    }
});
if (String(s.get("xmpt5")) == 1) {
    ui.xmpt5.setChecked(true);
};
ui.xmpt5.on("check", (checked) => {
    if (checked) {
        s.put("xmpt5", 1);
    } else {
        s.put("xmpt5", 0);
    }
});
if (String(s.get("xmpt6")) == 1) {
    ui.xmpt6.setChecked(true);
};
ui.xmpt6.on("check", (checked) => {
    if (checked) {
        s.put("xmpt6", 1);
    } else {
        s.put("xmpt6", 0);
    }
});
if (String(s.get("xmpt7")) == 1) {
    ui.xmpt7.setChecked(true);
};
ui.xmpt7.on("check", (checked) => {
    if (checked) {
        s.put("xmpt7", 1);
    } else {
        s.put("xmpt7", 0);
    }
});
if (String(s.get("xmpt8")) == 1) {
    ui.xmpt8.setChecked(true);
};
ui.xmpt8.on("check", (checked) => {
    if (checked) {
        s.put("xmpt8", 1);
    } else {
        s.put("xmpt8", 0);
    }
});
if (String(s.get("xmpt9")) == 1) {
    ui.xmpt9.setChecked(true);
};
ui.xmpt9.on("check", (checked) => {
    if (checked) {
        s.put("xmpt9", 1);
    } else {
        s.put("xmpt9", 0);
    }
});
if (String(s.get("xmpt10")) == 1) {
    ui.xmpt10.setChecked(true);
};
ui.xmpt10.on("check", (checked) => {
    if (checked) {
        s.put("xmpt10", 1);
    } else {
        s.put("xmpt10", 0);
    }
});
if (String(s.get("xmpt11")) == 1) {
    ui.xmpt11.setChecked(true);
};
ui.xmpt11.on("check", (checked) => {
    if (checked) {
        s.put("xmpt11", 1);
    } else {
        s.put("xmpt11", 0);
    }
});
if (String(s.get("xmpt12")) == 1) {
    ui.xmpt12.setChecked(true);
};
ui.xmpt12.on("check", (checked) => {
    if (checked) {
        s.put("xmpt12", 1);
    } else {
        s.put("xmpt12", 0);
    }
});
if (String(s.get("xmpt13")) == 1) {
    ui.xmpt13.setChecked(true);
};
ui.xmpt13.on("check", (checked) => {
    if (checked) {
        s.put("xmpt13", 1);
    } else {
        s.put("xmpt13", 0);
    }
});
if (String(s.get("xmpt14")) == 1) {
    ui.xmpt14.setChecked(true);
};
ui.xmpt14.on("check", (checked) => {
    if (checked) {
        s.put("xmpt14", 1);
    } else {
        s.put("xmpt14", 0);
    }
});
if (String(s.get("xmpt15")) == 1) {
    ui.xmpt15.setChecked(true);
};
ui.xmpt15.on("check", (checked) => {
    if (checked) {
        s.put("xmpt15", 1);
    } else {
        s.put("xmpt15", 0);
    }
});
if (String(s.get("xmpt16")) == 1) {
    ui.xmpt16.setChecked(true);
};
ui.xmpt16.on("check", (checked) => {
    if (checked) {
        s.put("xmpt16", 1);
    } else {
        s.put("xmpt16", 0);
    }
});
if (String(s.get("xmpt17")) == 1) {
    ui.xmpt17.setChecked(true);
};
ui.xmpt17.on("check", (checked) => {
    if (checked) {
        s.put("xmpt17", 1);
    } else {
        s.put("xmpt17", 0);
    }
});
if (String(s.get("xmpt18")) == 1) {
    ui.xmpt18.setChecked(true);
};
ui.xmpt18.on("check", (checked) => {
    if (checked) {
        s.put("xmpt18", 1);
    } else {
        s.put("xmpt18", 0);
    }
});
if (String(s.get("xmpt19")) == 1) {
    ui.xmpt19.setChecked(true);
};
ui.xmpt19.on("check", (checked) => {
    if (checked) {
        s.put("xmpt19", 1);
    } else {
        s.put("xmpt19", 0);
    }
});
if (String(s.get("xmpt20")) == 1) {
    ui.xmpt20.setChecked(true);
};
ui.xmpt20.on("check", (checked) => {
    if (checked) {
        s.put("xmpt20", 1);
    } else {
        s.put("xmpt20", 0);
    }
});
if (String(s.get("xmpt21")) == 1) {
    ui.xmpt21.setChecked(true);
};
ui.xmpt21.on("check", (checked) => {
    if (checked) {
        s.put("xmpt21", 1);
    } else {
        s.put("xmpt21", 0);
    }
});
if (String(s.get("xmpt22")) == 1) {
    ui.xmpt22.setChecked(true);
};
ui.xmpt22.on("check", (checked) => {
    if (checked) {
        s.put("xmpt22", 1);
    } else {
        s.put("xmpt22", 0);
    }
});
if (String(s.get("xmpt23")) == 1) {
    ui.xmpt23.setChecked(true);
};
ui.xmpt23.on("check", (checked) => {
    if (checked) {
        s.put("xmpt23", 1);
    } else {
        s.put("xmpt23", 0);
    }
});
if (String(s.get("xmpt24")) == 1) {
    ui.xmpt24.setChecked(true);
};
ui.xmpt24.on("check", (checked) => {
    if (checked) {
        s.put("xmpt24", 1);
    } else {
        s.put("xmpt24", 0);
    }
});
if (String(s.get("xmpt25")) == 1) {
    ui.xmpt25.setChecked(true);
};
ui.xmpt25.on("check", (checked) => {
    if (checked) {
        s.put("xmpt25", 1);
    } else {
        s.put("xmpt25", 0);
    }
});
if (String(s.get("xmpt26")) == 1) {
    ui.xmpt26.setChecked(true);
};
ui.xmpt26.on("check", (checked) => {
    if (checked) {
        s.put("xmpt26", 1);
    } else {
        s.put("xmpt26", 0);
    }
});
if (String(s.get("xmpt27")) == 1) {
    ui.xmpt27.setChecked(true);
};
ui.xmpt27.on("check", (checked) => {
    if (checked) {
        s.put("xmpt27", 1);
    } else {
        s.put("xmpt27", 0);
    }
});

if (String(s.get("应用转生通道2id")) == 1) {
    ui.应用转生通道2id.setChecked(true);
};
ui.应用转生通道2id.on("check", (checked) => {
    if (checked) {
        s.put("应用转生通道2id", 1);
    } else {
        s.put("应用转生通道2id", 0);
    }
});
ui.emitter.on('back_pressed', function (event) {
    undefined
    event.consumed = true;
});

ui.ok.click(function () {
    threads.start(function () {
        home()
        sleep(2000)

        threads.start(function () {

            while (true) {
                sjc()
                sleep(20000)
            }
            function sjc() {
                var path = "/sdcard/时间截.txt";
                var file = open(path, "w");
                file.write(new Date().getTime());
                file.close();
            }
        });
        threads.start(function () {
            while (true) {
                tcc()
                sleep(5000)
            }
            function tcc() {
                if (text("立即更新").exists()) {
                    if (textContains("点淘").exists()) {
                        back()
                        sleep(1000)
                    }
                }
                var 拒绝 = text("拒绝").findOnce()
                var 同意 = text("同意").findOnce()
                if (同意 != null && 拒绝 != null) {
                    同意.click()
                }
                if (text("淘宝").exists()) {
                    var 始终 = text("始终").findOnce()
                    if (始终 != null) {
                        始终.click()
                    }
                }
                if (text("稍后再说").exists()) {
                    var 稍后再说 = text("稍后再说").findOnce()
                    if (稍后再说 != null) {
                        //log("稍后再说")
                        稍后再说.click()
                    }
                }
                if (text("关闭应用").exists()) {
                    var 关闭应用 = text("关闭应用").findOnce()
                    if (关闭应用 != null) {
                        //log("关闭应用")
                        关闭应用.click()
                    }
                }
                if (text("稍后").exists()) {
                    var 稍后 = text("稍后").findOnce()
                    if (稍后 != null) {
                        //log("稍后")
                        稍后.click()
                    }
                }
                if (text("我知道了").exists()) {
                    var 我知道了 = text("我知道了").findOnce()
                    if (我知道了 != null) {
                        //log("我知道了")
                        我知道了.click()
                        sleep(2000)
                    }
                }
                if (text("知道了").exists()) {
                    var 知道了 = text("知道了").findOnce()
                    if (知道了 != null) {
                        //log("知道了")
                        知道了.click()
                        sleep(2000)
                    }
                }
                if (text("取消").exists()) {
                    if (text("复制链接").exists() == false && text("强行停止").exists() == false) {
                        var 取消 = text("取消").findOnce()
                        if (取消 != null) {
                            // //log("取消")
                            取消.click()
                        }
                    }
                }
                if (text("继续赚钱").exists()) {
                    var 继续赚钱 = text("继续赚钱").findOnce()
                    if (继续赚钱 != null) {
                        // //log("取消")
                        继续赚钱.click()
                    }
                }
                if (text("确定").exists()) {
                    var 确定 = text("确定").findOnce()
                    if (确定 != null) {
                        var 开启地理位置权限 = text("开启地理位置权限").findOnce()
                        if (开启地理位置权限 == null) {
                            确定.click()
                            sleep(2000)
                        } else if (开启地理位置权限 != null) {
                            var 取消 = desc("取消").findOnce()
                            if (取消 != null) {
                                // log("hh")
                                取消.click()
                                sleep(2000)
                            }
                        }
                    }
                }
                if (text("允许").exists()) {
                    var 允许 = text("允许").findOnce()
                    if (允许 != null) {
                        //log("允许")
                        允许.click()
                    }
                }
                var 禁止 = text("禁止").findOnce()
                if (禁止 != null) {
                    var 支付宝 = textContains("支付宝").findOnce()
                    if (支付宝 != null) {
                        禁止.click()
                        sleep(2000)
                    }
                }

            }
        });
        var LocalStorage = storages.create('quanlang');
        var center_id = '17089';
        var api_password = '786744123456';
        var software = 'haoda1413';
        var card = ui.xmds43.text()
        var client_key = '';
        threads.start(function () {
            http.__okhttp__.setTimeout(1000);
            var card_login_result = ql_request('apiv3/card_login', { card: card });
            log('卡密到期时间：' + card_login_result[1]['endtime']);
            log('卡密剩余时间：' + card_login_result[1]['less_time']);
            if (card_login_result[0] == 1) {
                LocalStorage.put('card_login_needle', card_login_result[1]['needle']);
                card_ping();
            } else {
                toast('卡密登录失败，失败原因是：' + card_login_result[1]);
                log('卡密登录失败，失败原因是：' + card_login_result[1]);
                sleep(9000)
                engines.stopAllAndToast();
                threads.shutDownAll();
                exit()
            }
        });
        function card_ping() {
            var ping_result = ql_request('apiv3/card_ping', { card: card, needle: LocalStorage.get('card_login_needle') });
            if (ping_result[0] == 1) {
                //心跳成功
                log('最新的卡密到期时间：' + ping_result[1]['endtime']);
                log('最新的卡密剩余时间：' + ping_result[1]['less_time']);
                sleep(ping_result[1]['heartbeat_second'] * 1000);//这里指的是心跳间隔根据后台设置的走，尽量不要改这个
                card_ping();//这块也不要改，
            } else {
                //心跳失败，有异常
                log('心跳失败，失败原因是：' + ping_result[1]);
                engines.stopAllAndToast();
                threads.shutDownAll();
                exit()
            }
        }
        function get_net_timestamp() {
            var net_connect_times = 0;
            var taobao_return_json = '';
            do {
                if (net_connect_times > 20) {
                    // log('1分钟连接淘宝失败');
                    return [false, '获取网络时间戳失败，请检查您的网络'];
                }
                if (net_connect_times > 0) sleep(3000);
                // log('尝试第【' + (++net_connect_times) + '】次获取网络时间');
                try { taobao_return_json = http.get('http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp').body.string(); } catch (e) { taobao_return_json = '' }
            } while (taobao_return_json.substring(2, 5) != "api");
            return [true, JSON.parse(taobao_return_json)["data"]["t"].substring(0, 10)];

        }
        function hex_md5(s) {
            return binl2hex(core_md5(str2binl(s), s.length * 8));
        }
        function core_md5(x, len) {

            x[len >> 5] |= 0x80 << ((len) % 32);
            x[(((len + 64) >>> 9) << 4) + 14] = len;
            var a = 1732584193;
            var b = -271733879;
            var c = -1732584194;
            var d = 271733878;
            for (var i = 0; i < x.length; i += 16) {
                var olda = a;
                var oldb = b;
                var oldc = c;
                var oldd = d;

                a = md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
                d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
                c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
                b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
                a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
                d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
                c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
                b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
                a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
                d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
                c = md5_ff(c, d, a, b, x[i + 10], 17, -42063);
                b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
                a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
                d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
                c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
                b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
                a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
                d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
                c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
                b = md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
                a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
                d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
                c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
                b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
                a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
                d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
                c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
                b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
                a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
                d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
                c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
                b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
                a = md5_hh(a, b, c, d, x[i + 5], 4, -378558);
                d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
                c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
                b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
                a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
                d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
                c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
                b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
                a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
                d = md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
                c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
                b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
                a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
                d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
                c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
                b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
                a = md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
                d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
                c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
                b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
                a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
                d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
                c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
                b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
                a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
                d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
                c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
                b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
                a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
                d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
                c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
                b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551);

                a = safe_add(a, olda);
                b = safe_add(b, oldb);
                c = safe_add(c, oldc);
                d = safe_add(d, oldd);
            }
            return Array(a, b, c, d);

        }
        function md5_cmn(q, a, b, x, s, t) {
            return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b);
        }
        function md5_ff(a, b, c, d, x, s, t) {
            return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
        }
        function md5_gg(a, b, c, d, x, s, t) {
            return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
        }
        function md5_hh(a, b, c, d, x, s, t) {
            return md5_cmn(b ^ c ^ d, a, b, x, s, t);
        }
        function md5_ii(a, b, c, d, x, s, t) {
            return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
        }
        function core_hmac_md5(key, data) {
            var bkey = str2binl(key);
            if (bkey.length > 16) bkey = core_md5(bkey, key.length * 8);

            var ipad = Array(16),
                opad = Array(16);
            for (var i = 0; i < 16; i++) {
                ipad[i] = bkey[i] ^ 0x36363636;
                opad[i] = bkey[i] ^ 0x5C5C5C5C;
            }

            var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * 8);
            return core_md5(opad.concat(hash), 512 + 128);
        }
        function safe_add(x, y) {
            var lsw = (x & 0xFFFF) + (y & 0xFFFF);
            var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
            return (msw << 16) | (lsw & 0xFFFF);
        }
        function bit_rol(num, cnt) {
            return (num << cnt) | (num >>> (32 - cnt));
        }
        function str2binl(str) {
            var bin = Array();
            var mask = (1 << 8) - 1;
            for (var i = 0; i < str.length * 8; i += 8)
                bin[i >> 5] |= (str.charCodeAt(i / 8) & mask) << (i % 32);
            return bin;
        }
        function binl2hex(binarray) {
            var hex_tab = 0 ? "0123456789ABCDEF" : "0123456789abcdef";
            var str = "";
            for (var i = 0; i < binarray.length * 4; i++) {
                str += hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8 + 4)) & 0xF) +
                    hex_tab.charAt((binarray[i >> 2] >> ((i % 4) * 8)) & 0xF);
            }
            return str;
        }
        function binl2b64(binarray) {
            var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
            var str = "";
            for (var i = 0; i < binarray.length * 4; i += 3) {
                var triplet = (((binarray[i >> 2] >> 8 * (i % 4)) & 0xFF) << 16) |
                    (((binarray[i + 1 >> 2] >> 8 * ((i + 1) % 4)) & 0xFF) << 8) |
                    ((binarray[i + 2 >> 2] >> 8 * ((i + 2) % 4)) & 0xFF);
                for (var j = 0; j < 4; j++) {
                    if (i * 8 + j * 6 > binarray.length * 32) str += b64pad;
                    else str += tab.charAt((triplet >> 6 * (3 - j)) & 0x3F);
                }
            }
            return str;
        }
        function cache(key, val) {
            if (null === val) return LocalStorage.get(key);
            return LocalStorage.put(key, val);
        }
        function ql_request(api, param) {
            var timestamp_info = [];
            var api_complete_path = '';
            var api_list = ['https://napi.2cccc.cc/', 'http://api2.2cccc.cc/', 'http://api3.2cccc.cc/'];
            var connect_server_times = 0;
            var server_return_json = '';
            param['center_id'] = center_id;
            param['software'] = software;
            do {
                if (connect_server_times > 0) sleep(6000);
                if (connect_server_times > 20) {
                    // log('连接服务器失败，请检查网络或联系管理员');
                    return [false, '连接服务器失败，请检查网络或联系管理员'];
                }
                timestamp_info = get_net_timestamp();
                if (!timestamp_info[0]) return timestamp_info;
                api_complete_path = api_list[parseInt(Math.random() * (api_list.length), 10)] + api;
                // log('尝试第【' + (++connect_server_times) + '】次连接服务器');
                param['timestamp'] = timestamp_info[1];
                param['sign'] = hex_md5(api_password + timestamp_info[1]);
                try { server_return_json = http.post(api_complete_path, param).body.string(); } catch (e) { server_return_json = ''; }
                //log( '服务器返回结果：' + server_return_json );//调试时候可以打开看看。
            } while (server_return_json.substring(2, 6) != "code");
            var server_return_data = JSON.parse(server_return_json);
            if (server_return_data['code'] == 0) return [false, server_return_data['msg']];
            //验证签名是否正确
            if (hex_md5(server_return_data['timestamp'] + api_password) != server_return_data['sign'] || Math.abs(timestamp_info[1] - server_return_data['timestamp'] > 600)) return [false, '算法验证错误，请联系管理员'];//这里一般后台没有改api密码，不会出现这个情况，改了api密码，或者有人尝试破解你的软件，会出现这个情况。
            return [true, server_return_data['data']];
        }

        function cumtomUI() {
            var window = floaty.window(
                <vertical>
                    <button id="ok" textSize="10sp" text="结束" textColor="#000000" background="#ff64dd17" />
                </vertical>
            );
            window.ok.on("click", () => {
                log("结束被点击了")
                engines.stopAllAndToast();
                exit();
            });
            window.ok.on("long_click", () => {
                window.setAdjustEnabled(!window.isAdjustEnabled());
            });

            let resource = context.getResources();
            w = floaty.rawWindow(

                <relative >

                    <frame bg="#44ffcc00" w="*" h="{{device.height/2}}">

                        <vertical w="*">
                            <View w="*" h="2px" bg="#c0c0c0" />
                            <com.stardust.autojs.core.console.ConsoleView
                                id="console"
                                background="#7f000000"
                                h="*" />
                        </vertical>
                    </frame>
                </relative>
            );

            w.setTouchable(false);
            w.setPosition(0, Number(ui.xmds45.text()) / 6); //设置悬浮窗位置
            w.setSize(Number(ui.xmds44.text()) / 3, Number(ui.xmds45.text()) / 1.5) //设置悬浮窗大小
            w.console.setConsole(runtime.console);

            window.setPosition(0, 0);  //设置结束悬浮窗位置
            window.setSize(200, 250) //设置结束悬浮窗大小
            let c = new android.util.SparseArray();
            let Log = android.util.Log;
            c.put(Log.VERBOSE, new java.lang.Integer(colors.parseColor("#dfc0c0c0")));
            c.put(Log.DEBUG, new java.lang.Integer(colors.parseColor("#ffffffff")));
            c.put(Log.INFO, new java.lang.Integer(colors.parseColor("#ff64dd17")));
            c.put(Log.WARN, new java.lang.Integer(colors.parseColor("#ff2962ff")));
            c.put(Log.ERROR, new java.lang.Integer(colors.parseColor("#ffd50000")));
            c.put(Log.ASSERT, new java.lang.Integer(colors.parseColor("#ffff534e")));
            w.console.setColors(c);
            try {
                ui.run(function () {
                    input_container = w.console.findViewById(getResourceID("input_container", "id"))
                    input_container.attr("visibility", "gone");
                })
            } catch (error) { }
            function getResourceID(name, defType) {
                return resource.getIdentifier(name, defType, context.getPackageName());
            };


            setInterval(() => { }, 1000);
        }

        function 读取文件(a路径) {
            if (!files.isFile("/sdcard/" + a路径 + ".txt")) {
                return "";
            }
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //打开文件
            var file = open(path);
            //读取文件的所有内容
            a返回 = file.read();
            //关闭文件
            // log(a返回)
            file.close();
            return a返回;
        }
        function 写入文件(a路径, a写入) {
            //文件路径
            var path = "/sdcard/" + a路径 + ".txt";
            //要写入的文件内容

            //以写入模式打开文件
            var file = open(path, "w");
            //写入文件
            file.write(a写入);
            //关闭文件
            file.close();
        }
        写入文件("xmds121", ui.xmds121.text())
        写入文件("xmds1", ui.xmds1.text())
        写入文件("xmds2", ui.xmds2.text())
        写入文件("xmds3", ui.xmds3.text())
        写入文件("xmds4", ui.xmds4.text())
        写入文件("xmds5", ui.xmds5.text())
        写入文件("xmds6", ui.xmds6.text())
        写入文件("xmds7", ui.xmds7.text())
        写入文件("xmds8", ui.xmds8.text())
        写入文件("xmds9", ui.xmds9.text())
        写入文件("xmds10", ui.xmds10.text())
        写入文件("xmds11", ui.xmds11.text())
        写入文件("xmds12", ui.xmds12.text())
        写入文件("xmds13", ui.xmds13.text())
        写入文件("xmds14", ui.xmds14.text())
        写入文件("xmds15", ui.xmds15.text())
        写入文件("xmds16", ui.xmds16.text())
        写入文件("xmds17", ui.xmds17.text())
        写入文件("xmds18", ui.xmds18.text())
        写入文件("xmds19", ui.xmds19.text())
        写入文件("xmds20", ui.xmds20.text())
        写入文件("xmds21", ui.xmds21.text())
        写入文件("xmds22", ui.xmds22.text())
        写入文件("xmds23", ui.xmds23.text())
        写入文件("xmds24", ui.xmds24.text())
        写入文件("xmds25", ui.xmds25.text())
        写入文件("xmds26", ui.xmds26.text())
        写入文件("xmds27", ui.xmds27.text())
        写入文件("xmds28", ui.xmds28.text())
        写入文件("xmds29", ui.xmds29.text())
        写入文件("xmds30", ui.xmds30.text())
        写入文件("xmds31", ui.xmds31.text())
        写入文件("xmds32", ui.xmds32.text())
        写入文件("xmds33", ui.xmds33.text())
        写入文件("xmds34", ui.xmds34.text())
        写入文件("xmds35", ui.xmds35.text())
        写入文件("xmds36", ui.xmds36.text())
        写入文件("xmds37", ui.xmds37.text())
        写入文件("xmds38", ui.xmds38.text())
        写入文件("xmds39", ui.xmds39.text())
        写入文件("xmds40", ui.xmds40.text())
        写入文件("xmds41", ui.xmds41.text())
        写入文件("xmds42", ui.xmds42.text())
        写入文件("xmds43", ui.xmds43.text())
        写入文件("xmds44", ui.xmds44.text())
        写入文件("xmds45", ui.xmds45.text())
        写入文件("xmds46", ui.xmds46.text())
        写入文件("xmds47", ui.xmds47.text())
        写入文件("xmds48", ui.xmds48.text())
        写入文件("xmds49", ui.xmds49.text())
        写入文件("xmds50", ui.xmds50.text())
        写入文件("xmds51", ui.xmds51.text())
        写入文件("xmds52", ui.xmds52.text())
        写入文件("xmds53", ui.xmds53.text())
        写入文件("xmds54", ui.xmds54.text())
        写入文件("xmds55", ui.xmds55.text())
        写入文件("xmds56", ui.xmds56.text())
        写入文件("xmds57", ui.xmds57.text())
        写入文件("xmds58", ui.xmds58.text())
        写入文件("xmds59", ui.xmds59.text())
        写入文件("xmds60", ui.xmds60.text())
        写入文件("xmds61", ui.xmds61.text())
        写入文件("xmds62", ui.xmds62.text())
        写入文件("xmds63", ui.xmds63.text())
        写入文件("xmds64", ui.xmds64.text())
        写入文件("xmds65", ui.xmds65.text())

        写入文件("xmds67", ui.xmds67.text())
        写入文件("xmds68", ui.xmds68.text())
        写入文件("xmds69", ui.xmds69.text())
        写入文件("xmds70", ui.xmds70.text())
        if (Number(ui.xmds54.text()) < 99 && ui.XY随机id.checked == true) {
            alert("[XY任务]参数错误！！！\n1:勾选了→‘随机运行’\n2:设置了参数。\n解决:只能设置一个，参数填▁时99时");

            exit()
        } else if (Number(ui.xmds44.text()) == "" || Number(ui.xmds45.text()) == "") {
            alert("[手机分辨率]参数错误！！！\n1:不许留空.不许填0\n解决:检测下填上");

            exit()
        } else if (Number(ui.xmds46.text()) == "" || Number(ui.xmds47.text()) == "") {
            alert("[低电量检测-方案1]参数错误！！！\n1:不许留空.不许填0\n解决:检测下填上");

            exit()
        } else if (Number(ui.xmds48.text()) == "" || Number(ui.xmds49.text()) == "") {
            alert("[低电量检测-方案2]参数错误！！！\n1:不许留空.不许填0\n解决:检测下填上");

            exit()
        }

        try {
            device.keepScreenOn()
            var bb = http.get("https://www.yuque.com/docs/share/f5ca28df-5f52-4191-b7dc-8f5bee4692eb?# 《版本》").body.string().split('description" content="')[1].split('">')[0];
            // 版本号修改
            if (bb == "31") {
                写入文件("更新text", "已是最新版")
            } else {
                写入文件("更新text", "有新版本啦！，请点击更新！！！")
            }
        } catch (error) {
        }
        function 时() {
            return new java.text.SimpleDateFormat("HH").format(new Date());
        }
        function 日() {
            return new java.text.SimpleDateFormat("dd").format(new Date());
        }
        function 时间计算整理(始, 终) {
            if (始 >= 24 || 终 >= 24) {////////时间相等
                return false;
            } else if (始 == 终 && 始 < 24 && 终 < 24) {////////时间相等
                return true;
            } else if (始 < 终) {////////始<终
                for (var i = 始; i <= 终; i++) {

                    if (Number(时()) == i) {
                        return true;
                    }
                    sleep(10)
                }
            } else if (始 > 终) {////////始>终
                for (var i = 始; i <= 23; i++) {

                    if (Number(时()) == i) {
                        return true;
                    }
                    sleep(10)
                }
                for (var i = 0; i <= 终; i++) {

                    if (Number(时()) == i) {
                        return true;
                    }
                    sleep(10)
                }
            }
            return false;
        }
        function 启动小程序1(小程序名外, 小程序名里, 日常任务) {
            // log("启动小程序1")

            if (packageName("com.taobao.taobao").exists()) {
                home()
                sleep(1500)
            }
            var 复位9 = 0
            var d = 0
            var shu = 1
            var ci = 0
            // log((43 + Number(ui.xmds65.text())))
            for (var sas = 0; sas < (20 + Number(ui.xmds65.text())); sas++) {
                if (textContains(小程序名里).exists() && text(日常任务).exists()) {
                    sleep(1000 + Number(ui.xmds55.text()) * 1000)
                    ko = 1
                    break
                }
                var cdsdf = textStartsWith(小程序名外).clickable(true).findOnce() || descStartsWith(小程序名外).clickable(true).findOnce()
                if (cdsdf != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        cdsdf.click()
                        sleep(400)
                    }
                    d = d + 1
                    if (d >= 18) {
                        d = 0
                    }
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                if (text("扫一扫").exists()) {
                    if (复位9 == 0) {
                        sas = 10
                        复位9 = 1
                    }
                    if (复位9 == 1 && sas == 13) {
                        back()
                    }
                }
                var 校验 = text("校验").findOnce()
                if (校验 != null) {
                    sleep(3000)
                    验证校验()
                }
                var 确定 = text("确定").findOnce()
                if (确定 != null) {
                    var 开启地理位置权限 = text("开启地理位置权限").findOnce()
                    if (开启地理位置权限 == null) {
                        确定.click()
                        sleep(2000)
                    } else if (开启地理位置权限 != null) {
                        var 取消 = desc("取消").findOnce()
                        if (取消 != null) {
                            log("hh")
                            取消.click()
                            sleep(2000)
                        }
                    }
                }
                var 退出 = text("退出").findOnce()
                if (退出 != null) {
                    //      log("退出:" + 退出.text())
                    退出.click()
                    sleep(2000)
                }
                sleep(1000)
                if (sas >= (19 + Number(ui.xmds65.text()))) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {
                    ci = 0

                    home()
                    ko = 2
                    break
                }
                // log("启动【" + 小程序名外 + "】" + sas)
            }
        }
        function 启动小程序2(小程序名外, 赚更多钱, 小程序名里, 日常任务, 点击2) {
            // log("启动小程序2")
            if (packageName("com.taobao.taobao").exists()) {
                home()
                sleep(1500)
            }
            var 复位9 = 0
            var d = 0
            var shu = 1
            var ci = 0
            for (var sas = 0; sas < (20 + Number(ui.xmds65.text())); sas++) {
                if (textContains(小程序名里).exists() && text(日常任务).exists()) {
                    // log(日常任务)
                    sleep(1000 + Number(ui.xmds55.text()) * 1000)
                    ko = 1
                    break
                }
                if (点击2 == 1) {
                    var zgdq = text(赚更多钱).findOnce()
                    if (zgdq != null) {
                        zgdq.click()
                        sleep(4000)
                    }
                } else if (点击2 == 2) {
                    var zgdq = text(赚更多钱).findOnce()
                    if (zgdq != null) {

                        sleep(500)
                        zgdq.parent().child(5).click()
                        sleep(4000)

                    }
                } else if (点击2 == 3) {
                    var 可用金币 = text(赚更多钱).findOnce()
                    if (可用金币 != null) {
                        // log("进入提现页面:要是一直显示这里，无障碍已假死，1分钟后，切换平台，解决方法：重启手机")
                        click(可用金币.parent().bounds().right / 1.15, 可用金币.parent().bounds().centerY())
                        sleep(4000)
                    }
                    //log("mmmm")
                }
                var cdsdf = textStartsWith(小程序名外).clickable(true).findOnce() || descStartsWith(小程序名外).clickable(true).findOnce()
                if (cdsdf != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        cdsdf.click()
                        sleep(400)
                    }
                    d = d + 1
                    if (d >= 18) {
                        d = 0
                    }
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                if (text("扫一扫").exists()) {

                    //log(扫一扫.text())
                    if (复位9 == 0) {
                        sas = 10
                        复位9 = 1
                    }
                    if (复位9 == 1 && sas == 13) {
                        back()
                    }
                }
                var 确定 = text("确定").findOnce()
                if (确定 != null) {
                    var 开启地理位置权限 = text("开启地理位置权限").findOnce()
                    if (开启地理位置权限 == null) {
                        确定.click()
                        sleep(2000)
                    } else if (开启地理位置权限 != null) {
                        var 取消 = desc("取消").findOnce()
                        if (取消 != null) {
                            log("hh")
                            取消.click()
                            sleep(2000)
                        }
                    }
                }
                sleep(1000)
                if (sas >= (19 + Number(ui.xmds65.text()))) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {

                    home()
                    ci = 0
                    ko = 2
                    break
                }
                // log("启动【" + 小程序名外 + "】" + sas)
            }

        }
        function 多平台排除任务(排除text, 关注sba, 关注sbb) {
            pcrw = 0
            if (排除text.includes("关注免丫租赁生活号") == true) {
                //log("排除关注任务:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('限时幸运任务') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('我的小程序') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('逛一逛领奖励') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('篇文章') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('热词') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('本任务已完成，明日在来吧~') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('恭喜你获得') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('喂鸡') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('喂牛') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('施肥') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('红包领不停') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('收藏有礼') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('看一看') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('邀请') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('万等你来抢') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('惊喜红包待领取') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('点击图片') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('去看看-----') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('充值话费') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('浏览任务领现金红包') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('从首页-我的小程序访问') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('点我领钱') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('必须点击') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('浏览得红包------') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('观看直播赚现金') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('加入会员领红包') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('红包领不停') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('开启推送通知权限') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('文章') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes(关注sba) == true) {
                //log("排除关注任务:" + 排除text)
                pcrw = 1
            } else if (排除text.includes(关注sbb) == true) {
                //log("排除关注任务:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('每天可完成') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('多看多得') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('收藏小程序') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('去久久日历') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('点击领红包') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('去全民') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('消费金可') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text == '访问领取') {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text == '掌上有钱') {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text == '订阅红包') {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('点右上角收') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('高额任务专区') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('精选福利') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            } else if (排除text.includes('立即收藏') == true) {
                //log("排除:" + 排除text)
                pcrw = 1
            }
        }
        function 通用执行任务() {
            var 已关注 = text("已关注").boundsInside(device.width / 1.35, 0, device.width, device.height / 3.84).findOnce()
            if (已关注 != null) {
                back()
                sleep(2000)
            }
            var 暂不关注 = text("暂不关注").findOnce()
            if (暂不关注 != null) {
                var fw = 暂不关注.parent().bounds()
                var 关注生活号 = text("关注生活号").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                if (关注生活号 != null) {
                    关注生活号.click()
                    sleep(2000)
                    var 确定 = text("确定").findOnce()
                    if (确定 != null) {
                        确定.click()
                    }
                }
            }
            var 复制链接 = text("复制链接").findOnce()
            if (复制链接 != null) {
                click(复制链接.bounds().centerX(), 复制链接.bounds().centerY());//点击中心点
                sleep(2000)
            }
            var 饿了么附近好店 = text("饿了么附近好店").findOnce()
            if (饿了么附近好店 != null) {
                for (var e = 17; e >= 0; e--) {
                    log("加时任务17/" + e)
                    sleep(2000)
                }
                back()
                sleep(2000)
            }
            var 杠a = textContains("/").findOnce()
            if (杠a != null) {
                sleep(2000)
                var qt = 0
                for (var n = 0; n < 5; n++) {
                    var 杠 = textContains("/").findOnce()
                    if (杠 != null) {
                        log(杠.text())
                        var da = 杠.text().split("/")[0].charAt(杠.text().split("/")[0].length - 1);
                        var db = 杠.text().split("/")[1].charAt(0);
                        log(da)
                        log(db)
                        if (qt >= 1) {
                            if (da == 0) {
                                log("wan--1")
                                back()
                                sleep(2000)
                                break
                            }
                        }
                        if (da == db) {
                            log("wan--")
                            back()
                            sleep(2000)
                            break
                        }
                        if (da >= db) {
                            log("wan--2")
                            back()
                            sleep(2000)
                            break
                        }
                        var 帮助中心 = text("帮助中心").findOnce()
                        if (帮助中心 != null) {
                            帮助中心.click()
                            sleep(15000)
                            back()
                            sleep(2000)
                            qt = qt + 1
                        } else {
                            back()
                            sleep(1000)
                            break
                        }
                        var 确定 = text("确定").findOnce()
                        if (确定 != null) {
                            确定.click()
                            sleep(2000)
                        }
                    }
                }
            }
        }
        function 关注生活() {
            var 限时8秒 = new Date().getTime() / 1000 + 10  ///////////
            var t = 0
            while (true) {
                if (Math.floor(Number(+ parseInt(限时8秒 - new Date().getTime() / 1000)) * 100) / 100 <= 0) {
                    // log("回小程序fg1")
                    a复位()
                    home()
                    break
                }
                if (text("复制链接").exists()) {
                    var 复制链接 = text("复制链接").findOnce()
                    if (复制链接 != null) {
                        t = 1
                        // log("复制链接")
                        if (复制链接.clickable() == true) {
                            复制链接.click()
                        } else if (复制链接.parent().clickable() == true) {
                            复制链接.parent().click()
                        }
                        sleep(2000)
                        // log("回小程序fg2")
                        back()
                        home()
                        break
                    }
                }
                if (className("android.widget.Button").text("同意").clickable(true).exists()) {
                    var 同意 = className("android.widget.Button").text("同意").clickable(true).findOnce()
                    if (同意 != null) {
                        // log("同意")
                        同意.click()
                        sleep(2000)
                    }
                }
                var 暂不关注 = text("暂不关注").findOnce()
                if (暂不关注 != null) {
                    var fw = 暂不关注.parent().bounds()
                    var 关注生活号 = text("关注生活号").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (关注生活号 != null) {
                        关注生活号.click()
                        sleep(2000)
                        var 确定 = text("确定").findOnce()
                        if (确定 != null) {
                            确定.click()
                        }
                    }
                }
                var hh = text("查看生活号").find().size()
                for (var i = 0; i < hh; i++) {
                    var 查看生活号 = text("查看生活号").findOnce(i)
                    if (查看生活号 != null) {
                        // log(查看生活号.bounds().centerX())
                        if (Number(查看生活号.bounds().centerX()) >= (Number(ui.xmds44.text()) / 2 - 6) && Number(查看生活号.bounds().centerX()) <= (Number(ui.xmds44.text()) / 2 + 6)) {

                            t = 1
                            查看生活号.click()
                            sleep(2000)
                        }
                    }
                }
                var hh1 = text("关注生活号").find().size()
                for (var ig = 0; ig < hh1; ig++) {
                    var 关注生活号 = text("关注生活号").findOnce(ig)
                    if (关注生活号 != null) {
                        // log(关注生活号.bounds().centerX())
                        if (Number(关注生活号.bounds().centerX()) >= (Number(ui.xmds44.text()) / 2 - 10) && Number(关注生活号.bounds().centerX()) <= (Number(ui.xmds44.text()) / 2 + 10)) {
                            t = 1
                            关注生活号.click()
                            sleep(2000)
                        } else {

                            if (Number(关注生活号.parent().bounds().centerX()) >= (Number(ui.xmds44.text()) / 2 - 10) && Number(关注生活号.parent().bounds().centerX()) <= (Number(ui.xmds44.text()) / 2 + 10)) {
                                t = 1
                                关注生活号.click()
                                sleep(2000)
                            }

                        }
                    }
                }
                var hh2 = text("立即关注").find().size()
                for (var ih = 0; ih < hh2; ih++) {
                    var 立即关注 = text("立即关注").findOnce(ih)
                    if (立即关注 != null) {
                        // log(立即关注.bounds().centerX())
                        if (Number(立即关注.bounds().centerX()) == Number(ui.xmds44.text()) / 2) {

                            t = 1
                            立即关注.click()
                            sleep(2000)
                        }

                    }
                }
                var 知道了 = text("知道了").findOnce()
                if (知道了 != null) {
                    // log(知道了.bounds().centerX())
                    if (Number(知道了.bounds().centerX()) == Number(ui.xmds44.text()) / 2) {
                        t = 1
                        知道了.click()
                        sleep(2000)
                    }
                }
                var 我知道了 = text("我知道了").findOnce()
                if (我知道了 != null) {
                    // log(我知道了.bounds().centerX())
                    if (Number(我知道了.bounds().centerX()) == Number(ui.xmds44.text()) / 2) {
                        t = 1
                        我知道了.click()
                        sleep(2000)
                    }
                }
                滑动验证()
                sleep(1000)
                if (text("已关注").boundsInside(0, 0, Number(ui.xmds44.text()), Number(ui.xmds45.text()) / 2).exists()) {
                    break
                }

                if (t == 0) {
                    break
                }
            }

        }
        function 关注善后1() {
            if (text("点击订阅店铺").exists()) {
                var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                if (点击订阅店铺 != null) {
                    // log("点击订阅店铺")
                    点击订阅店铺.click()
                    for (var c = 0; c < 4; c++) {
                        if (textContains("抱歉").exists() || text("关注店铺失败").exists()) {
                            log("关注失败")
                            关注sbc = 1
                            back()
                            break
                        }

                        sleep(300)
                    }
                }
            }
            if (text("未设置后跳链接").exists()) {
                log("未设置后跳链接")
                back()
            }
            if (text("点击关注店铺").exists()) {
                var 点击关注店铺 = text("点击关注店铺").findOnce()
                if (点击关注店铺 != null) {
                    // log("点击关注店铺")
                    点击关注店铺.click()
                    for (var c = 0; c < 4; c++) {
                        if (textContains("抱歉").exists() || text("关注店铺失败").exists()) {
                            log("关注失败")
                            关注sbc = 1
                            back()
                            break
                        }


                        sleep(300)

                    }
                }
            }
            if (text("点击收藏商品").exists()) {
                var 点击收藏商品 = text("点击收藏商品").findOnce()
                if (点击收藏商品 != null) {
                    // log("点击收藏商品")
                    点击收藏商品.click()
                    sleep(2000)
                }
            }
            if (text("关注店铺").exists()) {
                var 关注店铺 = text("关注店铺").findOnce()
                if (关注店铺 != null) {
                    // log("关注店铺")
                    关注店铺.click()
                    for (var c = 0; c < 4; c++) {
                        if (textContains("抱歉").exists() || text("关注店铺失败").exists()) {
                            log("关注失败")
                            关注sbc = 1
                            back()
                            break
                        }


                        sleep(300)
                    }
                }
            }
            if (className("android.widget.Button").text("同意").clickable(true)) {
                var 同意 = className("android.widget.Button").text("同意").clickable(true).findOnce()
                if (同意 != null) {
                    // log("同意")
                    同意.click()

                }
            }
            if (text("入会好礼享不停").exists()) {
                var 入会好礼享不停 = text("入会好礼享不停").findOnce()
                if (入会好礼享不停 != null) {
                    // log("入会好礼享不停")
                    入会好礼享不停.click()
                    sleep(2000)
                }
            }
            if (text("确认授权并入会").exists()) {
                var 确认授权并入会 = text("确认授权并入会").findOnce()
                if (确认授权并入会 != null) {
                    // log("确认授权并入会")
                    确认授权并入会.click()
                    sleep(2000)
                }
            }
        }
        function a复位() {
            for (var fd = 0; fd <= 4; fd++) {
                sleep(200)
                back()
            }
            // home()
        }
        function 关闭所有后台() {
            sleep(2000)
            home()
            sleep(2000)
            recents()
            sleep(3000)
            for (var s = 0; s <= 5; s++) {
                if (Number(ui.xmds59.text()) >= 1 && Number(ui.xmds60.text()) >= 1) {
                    click(Number(ui.xmds59.text()), Number(ui.xmds60.text()))
                    sleep(1000)
                    break
                }
                var 关闭所有 = descContains("关闭所有").findOnce()
                if (关闭所有 != null) {
                    if (关闭所有.clickable() == true) {
                        关闭所有.click()
                    } else {
                        关闭所有.parent().click()
                    }
                    sleep(1000)
                    break
                }
                var 双击清理 = descContains("双击清理").findOnce()
                if (双击清理 != null) {
                    if (双击清理.clickable() == true) {
                        双击清理.click()
                    } else {
                        双击清理.parent().click()
                    }
                    sleep(1000)
                    break
                }

                sleep(1500)
            }
            sleep(2000)
            home()
            sleep(2000)
            back()
            sleep(2000)
        }
        function 滑动刷新() {
            for (var s = 0; s <= 1; s++) {
                sleep(200)
                // swipe(Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text() / 3), Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()), random(300, 500));
                scrollBackward()
            }
            sleep(1000)
            swipe(Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text() / 3), Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()), random(300, 500));
            sleep(7000)
        }
        function 滑动验证() {
            if (text("向右滑动验证").exists()) {
                var 复位 = 0
                for (var s = 0; s <= 5; s++) {
                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                    if (向右滑动验证 != null) {
                        // log("向右滑动验证")
                        //写入文件("任务请求延迟", 1)
                        sleep(random(2000, 3000))
                        var 按钮 = clickable(true).text("").findOnce()
                        if (按钮 != null) {
                            //log(按钮.text())
                            var x1 = 按钮.bounds().centerX() + random(-2, 5)
                            var y1 = 按钮.bounds().centerY() + random(-2, 5)
                            var x2 = Number(ui.xmds44.text()) + random(-1, -2)
                            var y2 = 按钮.bounds().centerY() + random(-2, 5)
                            swipe(x1, y1, x2, y2, random(800, 1000));
                            sleep(3000)
                        }
                    }
                    var 验证失败 = textContains("验证失败").findOnce() || descContains("验证失败").findOnce()
                    if (验证失败 != null) {
                        // log("验证失败")
                        click(验证失败.bounds().centerX(), 验证失败.bounds().centerY());
                        sleep(3000)
                        if (复位 == 0) {
                            s = 0
                            复位 = 1
                        }
                    }
                    if (向右滑动验证 == null && 验证失败 == null) {
                        break
                    }
                    sleep(1000)
                }
            }
        }
        function 验证校验() {
            for (var sas = 0; sas < 10; sas++) {
                var 校验 = text("校验").findOnce()
                if (校验 != null) {
                    var 验证码 = className("android.widget.EditText").findOnce()
                    if (验证码 != null) {
                        // log("验证码:" + 验证码.text())
                        if (验证码.text() != "") {
                            var 验证码a = className("android.widget.EditText").findOnce(1)
                            if (验证码a != null) {
                                setText(验证码.text())
                                sleep(2000)
                                var 验证b = text("验 证").clickable(true).findOnce()
                                if (验证b != null) {
                                    // log("ddd")
                                    验证b.click()
                                    break
                                }
                            }
                        }
                    }
                }
                // log("验证" + sas)
                sleep(1000)
            }
        }
        function 小程序点击父() {
            // log("小程序")
            if (soutext == "省呗借钱申请") {
                soutext = "省呗借款申请"
            }
            var f = 0
            var dj = 0
            for (var i = 0; i < 10; i++) {
                // var 全部 = text("全部").boundsInside(0, 10, Number(ui.xmds44.text()) / 3.6, Number(ui.xmds45.text()) / 3.84).findOnce()
                var 全部 = text("全部").boundsInside(0, 10, Number(ui.xmds44.text()) / 3.6, Number(ui.xmds45.text()) / 3.84).findOne(5000)
                if (全部 != null) {

                    var fw = 全部.bounds()
                    // var 小程序 = text("小程序").boundsInside(fw.right, fw.top, Number(ui.xmds44.text()), fw.bottom).findOnce()
                    var 小程序 = text("小程序").boundsInside(fw.right, fw.top, Number(ui.xmds44.text()), fw.bottom).findOnce()
                    if (小程序 != null) {

                        if (f == 0) {
                            click(小程序.bounds().centerX(), 小程序.bounds().centerY());//点击中心点
                            f = 1
                            sleep(2000)
                            if (soutext != 1) {
                                var 搜索框 = className("android.widget.EditText").clickable(true).findOnce()
                                if (搜索框 != null) {

                                    // log(soutext)

                                    if (soutext.includes('【') == true && soutext.includes('】') == true) {
                                        soutext = soutext.split("【")[1].split("】")[0]
                                    }

                                    // log("ss-----")
                                    setText(soutext)
                                    sleep(1500)
                                    var 搜索 = text("搜索").findOnce()
                                    if (搜索 != null) {
                                        if (搜索.clickable() == true) {
                                            搜索.click()
                                            // log("点搜索1")
                                            dj = 1
                                        } else if (搜索.parent().clickable() == true) {
                                            搜索.parent().click()
                                            // log("点搜索2")
                                            dj = 1
                                        }
                                        sleep(3000)
                                    } else {
                                        // log("搜索==null")
                                    }
                                } else {
                                    // log("搜索框==null")
                                }
                            } else if (soutext == 1) {
                                dj = 1
                            }
                        }
                    } else {
                        f = 0
                    }
                    if (dj == 1) {
                        // log("找---" + soutext)
                        var 复制链接 = className("android.widget.TextView").text(soutext).findOnce()
                        if (复制链接 != null) {
                            // log(复制链接.text())
                            if (复制链接.parent().clickable() == true) {
                                // log("f1")
                                复制链接.parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    //// log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().clickable() == true) {
                                // log("f2")
                                复制链接.parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    //// log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().clickable() == true) {
                                // log("f3")
                                复制链接.parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    //// log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().clickable() == true) {
                                // log("f4")
                                复制链接.parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().clickable() == true) {
                                log("f5")
                                复制链接.parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            }
                        } else {
                            // log("h")
                            swipe(Number(ui.xmds44.text()) / 1.8, Number(ui.xmds45.text()) / 1.2, Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()) / 8, random(2500, 2500));
                            // swipe(Number(ui.xmds44.text()) / 1.8, Number(ui.xmds45.text()) / 1.2, Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()) / 9.6, random(300, 400));
                            sleep(500)
                        }
                    }
                    var 大家都在搜 = className("android.widget.TextView").text("大家都在搜").boundsInside(10, 0, Number(ui.xmds44.text()) - 10, Number(ui.xmds45.text()) / 1.129).findOnce()
                    if (大家都在搜 != null) {
                        // log("找不到，停")
                        // log(大家都在搜.bounds())
                        break
                    }
                }
                sleep(1000)
            }
        }
        function 小程序点击父2() {
            var dj = 0
            for (var i = 0; i < 10; i++) {
                // var 全部 = text("全部").boundsInside(0, 10, Number(ui.xmds44.text()) / 3.6, Number(ui.xmds45.text()) / 3.84).findOnce()
                var 全部 = text("全部").boundsInside(0, 10, Number(ui.xmds44.text()) / 3.6, Number(ui.xmds45.text()) / 3.84).findOne(5000)
                if (全部 != null) {

                    var fw = 全部.bounds()
                    // var 小程序 = text("小程序").boundsInside(fw.right, fw.top, Number(ui.xmds44.text()), fw.bottom).findOnce()
                    var 小程序 = text("小程序").boundsInside(fw.right, fw.top, Number(ui.xmds44.text()), fw.bottom).findOnce()
                    if (小程序 != null) {
                        click(小程序.bounds().centerX(), 小程序.bounds().centerY());//点击中心点
                        sleep(2000)
                    }
                    var 搜索框 = className("android.widget.EditText").clickable(true).findOnce()
                    if (搜索框 != null) {
                        if (搜索框.text() != "") {
                            dj = 1
                        }
                    }
                    if (dj == 1) {
                        // log("找---" + 搜索框.text())
                        var 复制链接 = className("android.widget.TextView").text(搜索框.text()).findOnce()
                        if (复制链接 != null) {
                            // log(复制链接.text())
                            if (复制链接.parent().clickable() == true) {
                                // log("f1")
                                复制链接.parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().clickable() == true) {
                                // log("f2")
                                复制链接.parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().clickable() == true) {
                                // log("f3")
                                复制链接.parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().clickable() == true) {
                                // log("f4")
                                复制链接.parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().clickable() == true) {
                                // log("f5")
                                复制链接.parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            } else if (复制链接.parent().parent().parent().parent().parent().parent().parent().parent().clickable() == true) {
                                //   log("f6")
                                复制链接.parent().parent().parent().parent().parent().parent().parent().parent().click()
                                for (var djs = 10; djs >= 0; djs--) {
                                    sleep(2000)
                                    // log(djs)
                                    if (random(1, 6) > 3) {
                                        scrollForward()
                                    } else {
                                        scrollBackward()
                                    }
                                }
                                break
                            }
                        } else {
                            // log("h")
                            swipe(Number(ui.xmds44.text()) / 1.8, Number(ui.xmds45.text()) / 1.2, Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()) / 8, random(2500, 2500));
                            // swipe(Number(ui.xmds44.text()) / 1.8, Number(ui.xmds45.text()) / 1.2, Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()) / 9.6, random(300, 400));
                            sleep(500)
                        }
                    }
                    var 大家都在搜 = className("android.widget.TextView").text("大家都在搜").boundsInside(10, 0, Number(ui.xmds44.text()) - 10, Number(ui.xmds45.text()) / 1.129).findOnce()
                    if (大家都在搜 != null) {
                        log("找不到，停")
                        // log(大家都在搜.bounds())
                        break
                    }
                }
                sleep(1000)
                // log("fffff")
            }
        }
        // ----ok
        function 任务老铁() {

            // 关闭老铁()
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("做任务赚钱").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().parent().bounds()
                    var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1).text());
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2).text());
                                        }
                                    } else {

                                    }
                                }
                            }
                        }
                        var 数组 = arr.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }

                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                                if (控件 != null) {
                                    //   log("点击:---" + 控件.text())
                                    控件.click()
                                }
                                sleep(2000)
                                var 老铁领红包m = textContains("老铁领红包").findOnce()
                                if (老铁领红包m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        } else {
                            //log("排除--" + 数组)

                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }

        }
        // ----ok
        function 任务连码() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("领金币赚钱").findOnce() || text("日常任务").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+").textEndsWith("金币").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    } else {

                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    if (i - 1 >= 0) {
                                        for (var djc = 0; djc < 3; djc++) {
                                            sleep(1000)
                                            //   log("点击:---" + arr[i - 1].text())
                                            arr[i - 1].click()
                                            sleep(2000)
                                            var 连码有钱m = textContains("连码有钱").findOnce()
                                            if (连码有钱m == null) {
                                                ra = 1
                                                break
                                            }
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务连码提现里() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("领金币赚钱").findOnce() || text("日常任务").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+").textEndsWith("金币").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        var i0 = 控件.indexInParent()
                        tz = 1
                        var ik = 0
                        var jt = 0

                        ik = i0 - 4
                        if (ik < 0) {
                            ik = 0
                        }
                        var arr = [];
                        for (var i1 = ik; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                    // //log(控件.text())
                                    if (控件.parent().child(i1).text() == (控件.text())) {
                                        // toastLog("任务；" + b)
                                        jt = 1
                                        break
                                    }
                                }
                            }
                        }
                        if (jt == 1) {
                            var 数组 = [];
                            for (var i = 0; i < arr.length; i++) {
                                数组.push(arr[i].text());
                            }
                            数组 = 数组.toString()
                            log("")
                            log(数组)
                            // 排除对比--时间提取
                            var 关注sba = "mmm"
                            var 关注sbb = "mmm"
                            if (关注sbc == 1) {
                                关注sba = "关注"
                                关注sbb = "mmm"
                            }
                            多平台排除任务(数组, 关注sba, 关注sbb)
                            if (pcrw == 0) {
                                rsj = 21
                                if (数组.includes('秒') == true) {
                                    rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                                } else if (数组.includes('s') == true) {
                                    rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                                } else if (数组.includes('S') == true) {
                                    rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                                }
                                if (rsj > 61) {
                                    rsj = 21
                                }
                                if (rsj == "" || rsj < 2) {
                                    rsj = 21
                                }
                                ra = 2
                                for (var i = 0; i < arr.length; i++) {
                                    if (arr[i].text() == 控件.text()) {
                                        if (i - 1 >= 0) {
                                            for (var djc = 0; djc < 3; djc++) {
                                                sleep(1000)
                                                //   log("点击:---" + arr[i - 1].text())
                                                arr[i - 1].click()
                                                sleep(2000)
                                                var 兑换现金m = textContains("兑换现金").findOnce()
                                                if (兑换现金m == null) {
                                                    ra = 1
                                                    break
                                                }
                                            }
                                        }
                                    }
                                }
                            } else {
                                //log("排除--" + 数组)
                            }
                            b = b + 1
                            if (tz == 1) {
                                break
                            }
                        }
                    }
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        function 任务花小钱() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("专属推荐").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = className("android.widget.Button").textStartsWith("+").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        var i0 = 控件.indexInParent()
                        // log(i0)
                        tz = 1
                        var ik = 0
                        var jt = 0

                        ik = i0 - 1
                        if (ik < 0) {
                            ik = 0
                        }
                        var arr = [];
                        for (var i1 = ik; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111---" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1).text())
                                    // //log(控件.text())
                                    if (控件.parent().child(i1).text() == (控件.text())) {
                                        // toastLog("任务；" + b)
                                        jt = 1
                                        break
                                    }
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        // if (sonList1.child(i2).text() != "") {
                                        //     log("===222---" + sonList1.child(i2).text())
                                        //     arr.push(sonList1.child(i2));
                                        // }
                                    } else {
                                        for (var i3 = 0; i3 < sonList2.childCount(); i3++) {
                                            var asonList3 = sonList2.child(i3);
                                            if (asonList3.childCount() == 0) {
                                                if (sonList2.child(i3).text() != "") {
                                                    // log("===333--" + sonList2.child(i3).text())
                                                    arr.push(sonList2.child(i3).text())
                                                }
                                            } else {
                                                log("完")
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        if (jt == 1) {
                            var 数组 = arr.toString()
                            log("")
                            log(数组)
                            // 排除对比--时间提取
                            var 关注sba = "mmm"
                            var 关注sbb = "mmm"
                            if (关注sbc == 1) {
                                关注sba = "关注"
                                关注sbb = "mmm"
                            }
                            多平台排除任务(数组, 关注sba, 关注sbb)
                            if (pcrw == 0) {
                                rsj = 21
                                if (数组.includes('秒') == true) {
                                    rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                                } else if (数组.includes('s') == true) {
                                    rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                                } else if (数组.includes('S') == true) {
                                    rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                                }
                                if (rsj > 61) {
                                    rsj = 21
                                }
                                if (rsj == "" || rsj < 2) {
                                    rsj = 21
                                }
                                ra = 2
                                for (var djc = 0; djc < 3; djc++) {
                                    var 控件 = className("android.widget.Button").textStartsWith("+").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                                    if (控件 != null) {
                                        // log("点击:---" + 控件.text())
                                        控件.click()
                                    }
                                    sleep(2000)
                                    var 赚点小钱m = textContains("赚点小钱").findOnce()
                                    if (赚点小钱m == null) {
                                        ra = 1
                                        break
                                    }
                                }
                            } else {
                                //log("排除--" + 数组)
                            }
                            b = b + 1
                            if (tz == 1) {
                                break
                            }
                        }
                    }
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务一路() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("赚更多钱").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1).text());
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2).text());
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = arr.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                                if (控件 != null) {
                                    //   log("点击:---" + 控件.text())
                                    控件.click()
                                }
                                sleep(2000)
                                var 一路向钱m = textContains("一路向钱").findOnce()
                                if (一路向钱m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务天天攒零钱() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                // var 控件 = textStartsWith("+").findOnce(b)
                var 控件 = textStartsWith("+ 0.0").textEndsWith("元").findOnce(b)
                if (控件 != null) {
                    // //log(控件.text())
                    tz = 1
                    var arr = [];
                    for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().parent().child(i1).text())
                                arr.push(控件.parent().parent().child(i1));
                            }
                        } else {
                            for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                var sonList2 = sonList1.child(i2);
                                if (sonList2.childCount() == 0) {
                                    if (sonList1.child(i2).text() != "") {
                                        // log("===222" + sonList1.child(i2).text())
                                        arr.push(sonList1.child(i2));
                                    }
                                }
                            }
                        }
                    }
                    var 数组 = [];
                    for (var i = 0; i < arr.length; i++) {
                        // log(i + "i:" + arr[i].text())
                        数组.push(arr[i].text());
                    }
                    数组 = 数组.toString()
                    log("")
                    log(数组)
                    // 排除对比--时间提取
                    var 关注sba = "mmm"
                    var 关注sbb = "mmm"
                    if (关注sbc == 1) {
                        关注sba = "关注"
                        关注sbb = "mmm"
                    }
                    多平台排除任务(数组, 关注sba, 关注sbb)
                    if (pcrw == 0) {
                        rsj = 21
                        if (数组.includes('秒') == true) {
                            rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('s') == true) {
                            rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('S') == true) {
                            rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                        }
                        if (rsj > 61) {
                            rsj = 21
                        }
                        if (rsj == "" || rsj < 2) {
                            rsj = 21
                        }
                        ra = 2
                        for (var i = 0; i < arr.length; i++) {
                            // log(arr[i].text())
                            if (arr[i].text() == 控件.text()) {
                                if (i - 2 >= 0) {
                                    for (var djc = 0; djc < 3; djc++) {
                                        sleep(1000)
                                        //   log("点击:---" + arr[i - 2].text())
                                        arr[i - 2].click()
                                        sleep(2000)
                                        var 大联盟m = textContains("大联盟").findOnce()
                                        if (大联盟m == null) {
                                            ra = 1
                                            break
                                        }
                                    }
                                }
                            }
                        }
                    } else {
                        //log("排除--" + 数组)
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务超级() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("做任务赚钱").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1).text());
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2).text());
                                        }
                                    } else {

                                    }
                                }
                            }
                        }
                        var 数组 = arr.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                                if (控件 != null) {
                                    //   log("点击:---" + 控件.text())
                                    控件.click()
                                }
                                sleep(2000)
                                var 超级直播间m = textContains("超级直播间").findOnce()
                                if (超级直播间m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务今日() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("去提现").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+ 0.0").textEndsWith("元").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().parent().child(i1).text())
                                    arr.push(控件.parent().parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    if (i - 2 >= 0) {
                                        for (var djc = 0; djc < 3; djc++) {
                                            sleep(1000)
                                            //   log("点击:---" + arr[i - 2].text())
                                            arr[i - 2].click()
                                            sleep(2000)
                                            var 今日任务m = textContains("今日任务").findOnce()
                                            if (今日任务m == null) {
                                                ra = 1
                                                break
                                            }
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务领小钱() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("做任务 领现金红包").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().bounds()
                    var 控件 = className("android.widget.Button").text("+0.01元").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    } else {

                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    for (var djc = 0; djc < 3; djc++) {
                                        sleep(1000)
                                        //   log("点击:---" + arr[i].text())
                                        arr[i].click()
                                        sleep(2000)
                                        var 今日已赚m = textContains("今日已赚").findOnce()
                                        if (今日已赚m == null) {
                                            ra = 1
                                            break
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务点点成金() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("每日任务").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = textStartsWith("+").boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    if (i + 1 < arr.length) {
                                        for (var djc = 0; djc < 3; djc++) {
                                            sleep(1000)
                                            //   log("点击:---" + arr[i + 1].text())
                                            arr[i + 1].click()
                                            sleep(2000)
                                            var 点点成金m = textContains("点点成金").findOnce()
                                            if (点点成金m == null) {
                                                ra = 1
                                                break
                                            }
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务有礼有钱() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var kja = text("做任务赚钱").findOnce()
                if (kja != null) {
                    var xfw = kja.parent().parent().bounds()
                    var 控件 = className("android.widget.Button").textContains("+").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().parent().child(i1).text())
                                    arr.push(控件.parent().parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 控件 = className("android.widget.Button").textContains("+").clickable(true).boundsInside(xfw.left, xfw.top, xfw.right, xfw.bottom).findOnce(b)
                                if (控件 != null) {
                                    //   log("点击:---" + 控件.text())
                                    控件.click()
                                }
                                sleep(2000)
                                var 有礼有钱m = textContains("有礼有钱").findOnce()
                                if (有礼有钱m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 流量钱包() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 做任务赚积分a = text("做任务赚积分").findOnce()
                var 刷新 = text("刷新").findOnce()
                if (刷新 != null && 做任务赚积分a != null) {
                    var 控件 = text("去做任务").findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().parent().parent().parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().parent().parent().parent().child(i1);
                            if (sonList1.childCount() == 0) {
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222--" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2).text());
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = arr.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }

                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 控件 = text("去做任务").findOnce(b)
                                if (控件 != null) {
                                    // log("点击:---" + 控件.text())
                                    控件.click()
                                }
                                sleep(2000)
                                var 流量钱包m = textContains("流量钱包").findOnce()
                                if (流量钱包m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        } else {
                            //log("排除--" + 数组)

                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }

        }
        // ----ok
        function 任务赚小钱() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 时间 = className("android.widget.Button").textContains(",立即领钱").clickable(true).findOnce(b)
                if (时间 != null) {
                    tz = 1
                    log(时间.text())
                    log("")
                    //log("----" + b)
                    if (时间.text() != "") {
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(时间.text(), 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (时间.text().includes('秒') == true) {
                                rsj = 时间.text().split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('s') == true) {
                                rsj = 时间.text().split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('S') == true) {
                                rsj = 时间.text().split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 时间 = className("android.widget.Button").textContains(",立即领钱").clickable(true).findOnce(b)
                                if (时间 != null) {
                                    //   log("点击:---" + 时间.text())
                                    时间.click()
                                }
                                sleep(2000)
                                var 赚小钱m = textContains("赚小钱").findOnce()
                                if (赚小钱m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        }
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务集宝星球() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 时间 = className("android.widget.Button").textContains("+").textContains("0").clickable(true).findOnce(b)
                if (时间 != null) {
                    tz = 1
                    log(时间.text())
                    log("")
                    //log("----" + b)
                    if (时间.text() != "") {
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(时间.text(), 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (时间.text().includes('秒') == true) {
                                rsj = 时间.text().split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('s') == true) {
                                rsj = 时间.text().split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('S') == true) {
                                rsj = 时间.text().split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var djc = 0; djc < 3; djc++) {
                                var 时间 = className("android.widget.Button").textContains("+").textContains("0").clickable(true).findOnce(b)
                                if (时间 != null) {
                                    //   log("点击:---" + 时间.text())
                                    时间.click()
                                }
                                sleep(2000)
                                var 集宝星球m = textContains("集宝星球").findOnce()
                                if (集宝星球m == null) {
                                    ra = 1
                                    break
                                }
                            }
                        }
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务每日签到() {
            var 查看更多 = text("查看更多").findOnce()
            if (查看更多 != null) {
                查看更多.click()
                sleep(2000)
            }

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 时间 = className("android.widget.Button").textContains("+").textContains("0").clickable(true).findOnce(b)
                if (时间 != null) {
                    tz = 1
                    log(时间.text())
                    log("")
                    //log("----" + b)
                    if (时间.text() != "") {
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(时间.text(), 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (时间.text().includes('秒') == true) {
                                rsj = 时间.text().split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('s') == true) {
                                rsj = 时间.text().split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('S') == true) {
                                rsj = 时间.text().split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            var ssrw = 0
                            if (时间.text().includes('搜索') == true) {
                                ssrw = 2
                            }
                            for (var djc = 0; djc < 3; djc++) {
                                var 时间 = className("android.widget.Button").textContains("+").textContains("0").clickable(true).findOnce(b)
                                if (时间 != null) {
                                    //   log("点击:---" + 时间.text())
                                    时间.click()
                                }
                                sleep(2000)
                                var 天天福利社m = textContains("天天福利社").findOnce()
                                if (天天福利社m == null) {
                                    if (ssrw == 0) {
                                        ra = 1
                                    }
                                    if (ssrw == 2) {
                                        ra = 4
                                    }
                                    break
                                }
                            }
                        }
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务集集攒() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                // var 控件 = textStartsWith("+").findOnce(b)
                var 控件 = textStartsWith("立即").findOnce(b)
                if (控件 != null) {
                    // //log(控件.text())
                    tz = 1
                    var arr = [];
                    for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1).text());
                            }
                        } else {
                            for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                var sonList2 = sonList1.child(i2);
                                if (sonList2.childCount() == 0) {
                                    if (sonList1.child(i2).text() != "") {
                                        // log("===222" + sonList1.child(i2).text())
                                        arr.push(sonList1.child(i2).text());
                                    }
                                }
                            }
                        }
                    }
                    var 数组 = arr.toString()
                    log("")
                    log(数组)
                    // 排除对比--时间提取
                    var 关注sba = "mmm"
                    var 关注sbb = "mmm"
                    if (关注sbc == 1) {
                        关注sba = "关注"
                        关注sbb = "mmm"
                    }
                    多平台排除任务(数组, 关注sba, 关注sbb)
                    if (pcrw == 0) {
                        rsj = 21
                        if (数组.includes('秒') == true) {
                            rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('s') == true) {
                            rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('S') == true) {
                            rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                        }
                        if (rsj > 61) {
                            rsj = 21
                        }
                        if (rsj == "" || rsj < 2) {
                            rsj = 21
                        }
                        ra = 2
                        for (var djc = 0; djc < 3; djc++) {
                            var 控件 = textStartsWith("立即").findOnce(b)
                            if (控件 != null) {
                                //   log("点击:---" + 控件.text())
                                控件.click()
                            }
                            sleep(2000)
                            var 集集攒m = textContains("集集攒").findOnce()
                            if (集集攒m == null) {
                                ra = 1
                                break
                            }
                        }
                    } else {
                        //log("排除--" + 数组)
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务天天集宝() {
            var 查看更多 = text("查看更多").findOnce()
            if (查看更多 != null) {
                查看更多.click()
                log("查看更多")
            }
            soutext = 0

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 时间 = className("android.widget.Button").textContains("+").clickable(true).findOnce(b)
                if (时间 != null) {
                    tz = 1
                    log(时间.text())
                    log("")
                    //log("----" + b)
                    if (时间.text() != "") {
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(时间.text(), 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (时间.text().includes('秒') == true) {
                                rsj = 时间.text().split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('s') == true) {
                                rsj = 时间.text().split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (时间.text().includes('S') == true) {
                                rsj = 时间.text().split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            var ssrw = 0
                            if (时间.text().includes('“') == true && 时间.text().includes('”') == true) {
                                soutext = 时间.text().split("“")[1].split("”")[0]
                                ssrw = 1
                            } else if (时间.text().includes('时间.text()') == true && 时间.text().includes('并进入') == true) {
                                soutext = 时间.text().split("时间.text()")[1].split("并进入")[0]
                                ssrw = 1
                            } else if (时间.text().includes('时间.text()') == true && 时间.text().includes('并进入') == false) {
                                soutext = 时间.text().split("时间.text()")[1]
                                ssrw = 1
                            } else if (时间.text().includes('【') == true && 时间.text().includes('】') == true) {
                                soutext = 时间.text().split("【")[1].split("】")[0]
                                ssrw = 1
                            } else if (时间.text().includes('找到') == true && 时间.text().includes('并进入') == true) {
                                soutext = 时间.text().split("找到")[1].split("并进入")[0]
                                ssrw = 1
                            }
                            if (soutext == "省呗借钱申请") {
                                soutext = "省呗借款申请"
                                ssrw = 1
                            }
                            if (时间.text() == "搜索小程序并浏览10S") {
                                ssrw = 2
                            }
                            var fu = 0
                            for (var djc = 0; djc < 3; djc++) {
                                var 时间 = className("android.widget.Button").textContains("+").clickable(true).findOnce(b)
                                if (时间 != null) {
                                    //   log("点击:---" + 时间.text())
                                    时间.click()
                                }
                                sleep(2000)
                                var 后自动进入 = textEndsWith("后自动进入").findOnce()
                                if (后自动进入 != null) {
                                    if (fu == 0) {
                                        fu = 1
                                        djc = -6
                                    }
                                    log("后自动进入")
                                    click(后自动进入.parent().bounds().centerX(), 后自动进入.parent().bounds().centerY());//点击中心点
                                    sleep(2000)
                                }
                                var 集宝星球m = textContains("集宝星球").findOnce()
                                if (集宝星球m == null) {
                                    if (ssrw == 0) {
                                        ra = 1
                                    }
                                    if (ssrw == 1) {
                                        ra = 3
                                    }
                                    if (ssrw == 2) {
                                        ra = 4
                                    }
                                    break
                                }
                            }
                        }
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务赚点是点() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                // var 控件 = textStartsWith("+").findOnce(b)
                var 控件 = textStartsWith("预览").textEndsWith("秒完成").findOnce(b)
                if (控件 != null) {
                    // //log(控件.text())
                    tz = 1
                    var arr = [];
                    for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1));
                            }
                        } else {
                            for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                var sonList2 = sonList1.child(i2);
                                if (sonList2.childCount() == 0) {
                                    if (sonList1.child(i2).text() != "") {
                                        // log("===222" + sonList1.child(i2).text())
                                        arr.push(sonList1.child(i2));
                                    }
                                }
                            }
                        }
                    }
                    var 数组 = [];
                    for (var i = 0; i < arr.length; i++) {
                        // log(i + "i:" + arr[i].text())
                        数组.push(arr[i].text());
                    }
                    数组 = 数组.toString()
                    log("")
                    log(数组)
                    // 排除对比--时间提取
                    var 关注sba = "mmm"
                    var 关注sbb = "mmm"
                    if (关注sbc == 1) {
                        关注sba = "关注"
                        关注sbb = "mmm"
                    }
                    多平台排除任务(数组, 关注sba, 关注sbb)
                    if (pcrw == 0) {
                        rsj = 21
                        if (数组.includes('秒') == true) {
                            rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('s') == true) {
                            rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('S') == true) {
                            rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                        }
                        if (rsj > 61) {
                            rsj = 21
                        }
                        if (rsj == "" || rsj < 2) {
                            rsj = 21
                        }
                        ra = 2
                        for (var i = 0; i < arr.length; i++) {
                            // log(arr[i].text())
                            if (arr[i].text() == 控件.text()) {
                                if (i - 1 >= 0) {
                                    for (var djc = 0; djc < 3; djc++) {
                                        sleep(1000)
                                        //   log("点击:---" + arr[i - 1].text())
                                        arr[i - 1].click()
                                        sleep(2000)
                                        var 赚点是点m = textContains("赚点是点").findOnce()
                                        if (赚点是点m == null) {
                                            ra = 1
                                            break
                                        }
                                    }
                                }
                            }
                        }
                    } else {
                        //log("排除--" + 数组)
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务天天有礼() {
            var 查看更多 = text("查看更多>").findOnce()
            if (查看更多 != null) {
                查看更多.click()
                sleep(2000)
            }
            soutext = 0

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 每日任务 = text("每日任务").findOnce()
                if (每日任务 != null) {
                    var fw = 每日任务.parent().parent().bounds()
                    var 控件 = className("android.view.View").textStartsWith("+").clickable(true).boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().parent().parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().parent().parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().parent().parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().parent().parent().child(i1).text())
                                    arr.push(控件.parent().parent().parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    } else {
                                        for (var i3 = 0; i3 < sonList2.childCount(); i3++) {
                                            var asonList3 = sonList2.child(i3);
                                            if (asonList3.childCount() == 0) {
                                                if (sonList2.child(i3).text() != "") {
                                                    // log("===" + sonList2.child(i3).text())
                                                    arr.push(sonList2.child(i3));
                                                }
                                            } else {
                                                log("完")
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            var ssrw = 0
                            if (数组.includes('“') == true && 数组.includes('”') == true) {
                                soutext = 数组.split("“")[1].split("”")[0]
                                ssrw = 1
                            } else if (数组.includes('数组') == true && 数组.includes('并进入') == true) {
                                soutext = 数组.split("数组")[1].split("并进入")[0]
                                ssrw = 1
                            } else if (数组.includes('数组') == true && 数组.includes('并进入') == false) {
                                soutext = 数组.split("数组")[1]
                                ssrw = 1
                            } else if (数组.includes('【') == true && 数组.includes('】') == true) {
                                soutext = 数组.split("【")[1].split("】")[0]
                                ssrw = 1
                            } else if (数组.includes('找到') == true && 数组.includes('并进入') == true) {
                                soutext = 数组.split("找到")[1].split("并进入")[0]
                                ssrw = 1
                            }
                            if (soutext == "省呗借钱申请") {
                                soutext = "省呗借款申请"
                                ssrw = 1
                            }
                            if (数组 == "搜索小程序并浏览10S") {
                                ssrw = 2
                            }
                            var fu = 0
                            for (var i = 0; i < arr.length; i++) {
                                if (arr[i].text() == 控件.text()) {
                                    if (i - 1 >= 0) {
                                        for (var djc = 0; djc < 3; djc++) {
                                            sleep(1000)
                                            //   log("点击:---" + arr[i - 1].text())
                                            arr[i - 1].click()
                                            sleep(2000)
                                            var 后自动进入 = textEndsWith("后自动进入").findOnce()
                                            if (后自动进入 != null) {
                                                if (fu == 0) {
                                                    fu = 1
                                                    djc = -6
                                                }
                                                log("后自动进入")
                                                click(后自动进入.parent().bounds().centerX(), 后自动进入.parent().bounds().centerY());//点击中心点
                                                sleep(2000)
                                            }
                                            var 天天有礼m = textContains("天天有礼").findOnce()
                                            if (天天有礼m == null) {
                                                if (ssrw == 0) {
                                                    ra = 1
                                                }
                                                if (ssrw == 1) {
                                                    ra = 3
                                                }
                                                if (ssrw == 2) {
                                                    ra = 4
                                                }
                                                break
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务走路() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                // var 控件 = textStartsWith("+").findOnce(b)
                var 控件 = className("android.widget.Button").textStartsWith("+").clickable(true).findOnce(b)
                if (控件 != null) {
                    // //log(控件.text())
                    tz = 1
                    var arr = [];
                    for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1).text());
                            }
                        } else {
                            for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                var sonList2 = sonList1.child(i2);
                                if (sonList2.childCount() == 0) {
                                    if (sonList1.child(i2).text() != "") {
                                        // log("===222" + sonList1.child(i2).text())
                                        arr.push(sonList1.child(i2).text());
                                    }
                                }
                            }
                        }
                    }
                    var 数组 = arr.toString()
                    log("")
                    log(数组)
                    // 排除对比--时间提取
                    var 关注sba = "mmm"
                    var 关注sbb = "mmm"
                    if (关注sbc == 1) {
                        关注sba = "关注"
                        关注sbb = "mmm"
                    }
                    多平台排除任务(数组, 关注sba, 关注sbb)
                    if (pcrw == 0) {
                        rsj = 21
                        if (数组.includes('秒') == true) {
                            rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('s') == true) {
                            rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                        } else if (数组.includes('S') == true) {
                            rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                        }
                        if (rsj > 61) {
                            rsj = 21
                        }
                        if (rsj == "" || rsj < 2) {
                            rsj = 21
                        }
                        ra = 2
                        for (var djc = 0; djc < 3; djc++) {
                            var 控件 = className("android.widget.Button").textStartsWith("+").clickable(true).findOnce(b)
                            if (控件 != null) {
                                //   log("点击:---" + 控件.text())
                                控件.click()
                            }
                            sleep(2000)
                            var 狂赚金币m = textContains("狂赚金币").findOnce()
                            if (狂赚金币m == null) {
                                ra = 1
                                break
                            }
                        }
                    } else {
                        //log("排除--" + 数组)
                    }
                    b = b + 1
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 任务掌上有钱() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 全部任务 = text("全部任务").findOnce()
                if (全部任务 != null) {
                    var fw = 全部任务.bounds()
                    var 控件 = className("android.widget.Image").boundsInside(5, fw.bottom + (fw.bottom - fw.top) / 1.128, fw.right, Number(ui.xmds45.text())).findOnce(b)
                    if (控件 != null) {
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    } else {
                                        for (var i3 = 0; i3 < sonList2.childCount(); i3++) {
                                            var asonList3 = sonList2.child(i3);
                                            if (asonList3.childCount() == 0) {
                                                if (sonList2.child(i3).text() != "") {
                                                    // log("===" + sonList2.child(i3).text())
                                                    arr.push(sonList2.child(i3));
                                                }
                                            } else {
                                                log("完")
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                if (i + 2 < arr.length) {
                                    for (var djc = 0; djc < 3; djc++) {
                                        sleep(1000)
                                        //   log("点击:---" + arr[i + 2].text())
                                        arr[i + 2].click()
                                        sleep(2000)
                                        var 全部任务m = textContains("全部任务").findOnce()
                                        if (全部任务m == null) {
                                            ra = 1
                                            break
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                        if (b >= 8) {
                            b = 1
                        }
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 1
            }
        }
        function 启动掌上提现() {
            var d = 0
            var shu = 1
            for (var sas = 0; sas < 43; sas++) {
                var a小程序名外 = text("掌上有钱").clickable(true).findOnce() || desc("掌上有钱").clickable(true).findOnce()
                if (a小程序名外 != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        a小程序名外.click()
                        sleep(400)
                    }
                    d = d + 1
                    if (d == 15) {
                        d = 0
                    }
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                if (text("掌上有钱").exists() && text("查看更多任务").exists()) {
                    sleep(5000)
                    log("提现")
                    var 兑换 = text("兑换").findOnce()
                    if (兑换 != null) {
                        // log(兑换.text())
                        兑换.click()
                        sleep(2000)
                    }
                    var 提现 = text("提现").findOnce()
                    if (提现 != null) {
                        // log(提现.text())
                        提现.click()
                        sleep(2000)
                        写入文件("掌上提现", Number(日()))
                        return true;
                    }
                }
                sleep(1000)
                log("掌上提现/" + sas)
                if (sas == 19 || sas == 29 || sas == 39) {
                    关闭所有后台()
                    if (sas >= 40) {
                        return true;
                    }
                }
            }

        }
        function 掌上完成10个(完成10个) {
            var 完成10个 = text(完成10个).findOnce()
            if (完成10个 != null) {
                log(完成10个.text())
                完成10个.click()
                sleep(3000)
            }

            var 确定 = text("确定").findOnce()
            if (确定 != null) {
                log(确定.text())
                确定.click()
                sleep(2000)
            }
        }
        function 掌上福袋() {
            if (Number(日()) != Number(读取文件("掌上福袋"))) {
                log("掌上福袋")
                back()
                sleep(3000)
                var 今日已完成 = textStartsWith("今日已完成").textEndsWith("任务").findOnce()
                if (今日已完成 != null) {
                    log(今日已完成.text())
                    var num = 今日已完成.text().replace(/[^0-9]/ig, "");
                    if (Number(num) >= 200) {
                        掌上完成10个("完成10个")
                        掌上完成10个("完成30个")
                        掌上完成10个("完成100个")
                        掌上完成10个("完成200个")
                        sleep(2000)
                        掌上完成10个("完成10个")
                        掌上完成10个("完成30个")
                        掌上完成10个("完成100个")
                        掌上完成10个("完成200个")
                        sleep(2000)
                        写入文件("掌上福袋", Number(日()))
                    }
                }
            }
        }
        // ----ok
        function 翻牌() {

            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 赚更多钱 = text("赚更多钱").findOnce()
                if (赚更多钱 != null) {
                    var fw = 赚更多钱.parent().bounds()
                    var 控件 = textStartsWith("+").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce(b)
                    if (控件 != null) {
                        // //log(控件.text())
                        tz = 1
                        var arr = [];
                        for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                            var sonList1 = 控件.parent().child(i1);
                            if (sonList1.childCount() == 0) {
                                if (控件.parent().child(i1).text() != "") {
                                    // log("===111" + 控件.parent().child(i1).text())
                                    arr.push(控件.parent().child(i1));
                                }
                            } else {
                                for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                    var sonList2 = sonList1.child(i2);
                                    if (sonList2.childCount() == 0) {
                                        if (sonList1.child(i2).text() != "") {
                                            // log("===222" + sonList1.child(i2).text())
                                            arr.push(sonList1.child(i2));
                                        }
                                    } else {

                                    }
                                }
                            }
                        }
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            // log(i + "i:" + arr[i].text())
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    for (var djc = 0; djc < 3; djc++) {
                                        sleep(1000)
                                        //   log("点击:---" + arr[i].text())
                                        arr[i].click()
                                        sleep(2000)
                                        var 天天翻牌m = textContains("天天翻牌").findOnce()
                                        if (天天翻牌m == null) {
                                            ra = 1
                                            break
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                    }
                }
                if (tz == 1) {
                    break
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 天天乐抽奖() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 控件 = textContains("秒得").textEndsWith("积分").findOnce(b)
                if (控件 != null) {
                    //log(控件.text())
                    var i0 = 控件.indexInParent()
                    log(i0)
                    tz = 1
                    var jt = 0
                    var ja = 0
                    var arr = [];
                    for (var i1 = i0; i1 < 控件.parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111--" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1));
                                ja = ja + 1
                                if (ja >= 3) {
                                    jt = 1
                                    break
                                }
                            }
                        }
                    }
                    if (jt == 1) {
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            if (arr[arr.length - 1].text() != "") {
                                for (var djc = 0; djc < 3; djc++) {
                                    sleep(1000)
                                    // log("点击:---" + arr[arr.length - 1].text())
                                    arr[arr.length - 1].click()
                                    sleep(2000)
                                    var 天天领现金福利m = textContains("天天领现金福利").findOnce()
                                    if (天天领现金福利m == null) {
                                        ra = 1
                                        break
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                        if (tz == 1) {
                            break
                        }
                    }
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }
        }
        // ----ok
        function 天天乐抽奖2() {
            var tz = 0
            for (var wxh = 0; wxh < 3; wxh++) {
                var 控件 = text("最高+1元").findOnce(b)
                if (控件 != null) {
                    //log(控件.text())
                    var i0 = 控件.indexInParent()
                    // log(i0)
                    tz = 1
                    var ik = 0
                    var jt = 0

                    ik = i0 - 3
                    if (ik < 0) {
                        ik = 0
                    }
                    // log(ik)
                    var arr = [];
                    for (var i1 = ik; i1 < 控件.parent().childCount(); i1++) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                arr.push(控件.parent().child(i1));
                                if (jt == 1) {
                                    // toastLog("获取完成")
                                    break
                                }
                                // //log(控件.text())
                                if (控件.parent().child(i1).text() == (控件.text())) {
                                    // toastLog("任务；" + b)
                                    jt = 1
                                }
                            }
                        }
                    }
                    if (jt == 1) {
                        var 数组 = [];
                        for (var i = 0; i < arr.length; i++) {
                            数组.push(arr[i].text());
                        }
                        数组 = 数组.toString()
                        log("")
                        log(数组)
                        // 排除对比--时间提取
                        var 关注sba = "mmm"
                        var 关注sbb = "mmm"
                        if (关注sbc == 1) {
                            关注sba = "关注"
                            关注sbb = "mmm"
                        }
                        多平台排除任务(数组, 关注sba, 关注sbb)
                        if (pcrw == 0) {
                            rsj = 21
                            if (数组.includes('秒') == true) {
                                rsj = 数组.split("秒")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('s') == true) {
                                rsj = 数组.split("s")[0].slice(-3).replace(/[^0-9]/ig, "");
                            } else if (数组.includes('S') == true) {
                                rsj = 数组.split("S")[0].slice(-3).replace(/[^0-9]/ig, "");
                            }
                            if (rsj > 61) {
                                rsj = 21
                            }
                            if (rsj == "" || rsj < 2) {
                                rsj = 21
                            }
                            ra = 2
                            for (var i = 0; i < arr.length; i++) {
                                // log(arr[i].text())
                                if (arr[i].text() == 控件.text()) {
                                    if (i + 1 < arr.length) {
                                        for (var djc = 0; djc < 3; djc++) {
                                            sleep(1000)
                                            //   log("点击:---" + arr[i + 1].text())
                                            arr[i + 1].click()
                                            sleep(2000)
                                            var 天天领现金福利m = textContains("天天领现金福利").findOnce()
                                            if (天天领现金福利m == null) {
                                                ra = 1
                                                break
                                            }
                                        }
                                    }
                                }
                            }
                        } else {
                            //log("排除--" + 数组)
                        }
                        b = b + 1
                        if (tz == 1) {
                            break
                        }
                    }
                }
                sleep(100)
            }
            if (tz == 0) {
                b = 0
            }

        }

        function 淘宝取关() {
            var tianc = Number(ui.xmds63.text())
            if (tianc == "") {
                tianc = 30
            }
            var 控件 = textEndsWith("全部分类").findOnce()
            if (控件) {
                if (b >= 控件.parent().parent().parent().childCount()) {
                    b = 999
                    log("结束")
                    return;
                }
                var dat = 0
                for (var i1 = b + 1; i1 < 控件.parent().parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                            } else {
                                for (var i3 = 0; i3 < sonList2.childCount(); i3++) {
                                    var asonList3 = sonList2.child(i3);
                                    if (asonList3.childCount() == 0) {
                                        if (sonList2.child(i3).text() != "") {
                                            log("进入：" + sonList2.child(i3).text())
                                            sonList2.child(i3).click()
                                            sleep(3000)
                                            dat = 1
                                            break
                                        }
                                    } else {
                                        log("完")
                                    }
                                }
                            }
                            if (dat == 1) {
                                break
                            }
                        }
                        if (dat == 1) {
                            break
                        }
                    }
                }
                b = b + 1
                if (text("订阅店铺").exists() && text("入会店铺").exists() && text("所有类目").exists() == false) {
                    for (var hi = 0; hi < 5; hi++) {
                        sleep(2000)
                        swipe(Number(ui.xmds44.text()) / 1.8, Number(ui.xmds45.text()) / 1.2, Number(ui.xmds44.text()) / 2, Number(ui.xmds45.text()) / 9.6, random(300, 400));
                    }
                    for (var hi = 0; hi < 3; hi++) {
                        var wut = 0
                        var zd = textEndsWith("天前订阅").find().size()
                        log("有----" + zd)
                        for (var i = 0; i < zd; i++) {
                            // log(i)
                            var 控件 = textEndsWith("天前订阅").findOnce(i)
                            if (控件 != null) {
                                var tsuz = 控件.text()
                                var tshu = tsuz.replace(/[^0-9]/ig, "");
                                if (tshu >= tianc) {
                                    var tzg = 0
                                    for (var i1 = 0; i1 < 控件.parent().parent().parent().parent().childCount(); i1++) {
                                        var sonList1 = 控件.parent().parent().parent().parent().child(i1);
                                        if (sonList1.childCount() == 0) {
                                        } else {
                                            for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                                                var sonList2 = sonList1.child(i2);
                                                if (sonList2.childCount() == 0) {
                                                    if (sonList1.child(i2).text() != "") {
                                                        // log("===222----" + sonList1.child(i2).text())
                                                        if (sonList1.child(i2).text() == "取消订阅") {
                                                            log("执行取关：【" + sonList1.child(i2).text() + "】")
                                                            sonList1.child(i2).click()
                                                            sleep(3000)
                                                            tzg = 1
                                                            wut = 1
                                                            i--
                                                            break
                                                        }
                                                    }
                                                }
                                            }

                                        }
                                        if (tzg == 1) {
                                            break
                                        }
                                        sleep(100)
                                    }
                                }
                            } else {
                                break
                            }
                            sleep(100)
                        }
                        if (wut == 0) {
                            log("换类目")
                            break
                        }
                        滑动验证()

                    }
                }
            }
        }
        function 启动淘宝(页面值1) {
            滑动验证()
            if (text(页面值1).exists()) {
                return;
            }
            app.launchPackage("com.taobao.taobao")
            var d = 0
            var shu = 1
            for (var sas = 0; sas < 43; sas++) {
                滑动验证()
                var 我知道了 = text("我知道了").findOnce()
                if (我知道了 != null) {
                    我知道了.click()
                    sleep(1000)
                }
                if (sas == 10 || sas == 20 || sas == 30) {
                    app.launchPackage("com.taobao.taobao")
                    sleep(400)
                }
                var 淘宝 = textStartsWith("淘宝").clickable(true).findOnce() || descStartsWith("淘宝").clickable(true).findOnce() || textStartsWith("手机淘宝").clickable(true).findOnce() || descStartsWith("手机淘宝").clickable(true).findOnce()
                if (淘宝 != null) {
                    log("淘宝--" + d)
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        淘宝.click()
                        sleep(400)
                    }
                    d = d + 1
                    if (d >= 15) {
                        d = 1
                    }
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                var 我的淘宝 = text("我的淘宝").clickable(true).findOnce() || desc("我的淘宝").clickable(true).findOnce()
                var 订阅 = text("订阅").findOnce()
                if (订阅 != null && 我的淘宝 != null) {
                    我的淘宝.click();//点击中心点
                    sleep(1000)
                }
                var 足迹 = text("足迹").findOnce() || desc("足迹").findOnce()
                var 订阅店铺 = text("订阅店铺").clickable(true).findOnce() || desc("订阅店铺").clickable(true).findOnce()
                if (订阅店铺 != null && 足迹 != null) {
                    订阅店铺.click();//点击中心点
                    sleep(1000)
                }
                if (text(页面值1).exists()) {
                    return;
                }
                sleep(1000)
                log("启动淘宝43/" + sas)
                if (sas == 19 || sas == 29 || sas == 39) {
                    关闭所有后台()
                    home()
                    sleep(3000)
                    if (sas >= 39) {
                        log("进入淘宝失败")
                        return true;
                    }
                }
            }
        }
        function 任务逛精选好货赚元宝() {
            log("任务逛精选好货赚元宝")
            var f = 0
            for (var ii = 0; ii < 11; ii++) {
                var 首页 = desc("首页").findOnce()
                if (首页 != null) {
                    首页.click()
                    sleep(2000)
                }
                var 签到 = desc("签到").findOnce()
                if (签到 != null) {
                    签到.click()
                    sleep(2000)
                }
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 != null) {
                    // log(去赚元宝.text())
                    去赚元宝.click()
                    sleep(2000)
                }
                var 逛精选 = textStartsWith("逛精选好货赚元宝(").textEndsWith(")").findOnce()
                if (逛精选 != null) {
                    var fw = 逛精选.parent().parent().bounds()
                    var 已完成 = text("已完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (已完成 != null) {
                        log("逛精选好货赚元宝" + 已完成.text())
                        ko = 4
                        back()
                        break
                    }
                    var 去逛逛 = text("去逛逛").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (去逛逛 != null) {
                        log(去逛逛.text())
                        去逛逛.click()
                        sleep(2000)
                    }
                }

                var 滑动浏览30秒 = textStartsWith("滑动浏览").findOnce()
                if (滑动浏览30秒 != null) {
                    log(滑动浏览30秒.text())
                    if (f == 0) {
                        ii = -35
                        f = 1
                    }
                    scrollForward()
                    sleep(3000)
                    var fw = 滑动浏览30秒.bounds()
                    var 秒 = textStartsWith("秒").findOnce()
                    if (秒 != null) {
                        log(秒.text())
                        var fww = 秒.bounds()
                        var ms = boundsInside(fw.left + (fw.right - fw.left) / 2, fw.top, fww.left + (fww.right - fww.left) / 2, fw.bottom).findOnce()
                        if (ms != null) {
                            log(ms.text())
                            if (ms.text() <= 3) {
                                sleep(5000)
                                log("任务逛精选好货赚元宝完成11")
                                break
                            }
                        }
                    }
                }

                var 当前页下单 = textStartsWith("当前页下单").findOnce()
                if (当前页下单 != null) {
                    back()
                    sleep(2000)
                    log("任务逛精选好货赚元宝完成22")
                    break
                }
                var 任务完成 = textStartsWith("任务完成").findOnce()
                if (任务完成 != null) {
                    back()
                    sleep(2000)
                    log("任务逛精选好货赚元宝完成33")
                    break
                }
                sleep(1000)
            }
            for (var ccv = 0; ccv < 5; ccv++) {
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 == null) {
                    back()
                }
                if (去赚元宝 != null) {
                    break
                }
                sleep(2000)
            }
        }
        function 任务搜索你喜欢的宝贝() {
            log("任务搜索你喜欢的宝贝")
            var f = 0
            var m = 0
            for (var ii = 0; ii < 11; ii++) {
                var 首页 = desc("首页").findOnce()
                if (首页 != null) {
                    首页.click()
                    sleep(2000)
                }
                var 签到 = desc("签到").findOnce()
                if (签到 != null) {
                    签到.click()
                    sleep(2000)
                }
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 != null) {
                    // log(去赚元宝.text())
                    去赚元宝.click()
                    sleep(2000)
                }
                var 逛精选 = textStartsWith("搜索你喜欢的宝贝(").textEndsWith(")").findOnce()
                if (逛精选 != null) {
                    var fw = 逛精选.parent().parent().bounds()
                    var 去搜索 = text("去搜索").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (去搜索 != null) {
                        去搜索.click()
                        sleep(2000)
                    }
                    var 已完成 = text("已完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (已完成 != null) {
                        back()
                        break
                    }
                }
                var 搜索框 = className("android.widget.EditText").findOnce()
                if (搜索框 != null) {
                    // log("hh")
                    搜索框.click()
                    sleep(2000)
                    var 随机 = random(1, 5)
                    var 文本text = "鞋子"
                    if (随机 == 1) {
                        文本text = "袜子"
                    } else if (随机 == 2) {
                        文本text = "纸巾"
                    } else if (随机 == 3) {
                        文本text = "帽子"
                    } else if (随机 == 4) {
                        文本text = "衣服"
                    } else if (随机 == 5) {
                        文本text = "手表"
                    }
                    setText(文本text)
                    sleep(2000)
                    var 搜索 = text("搜索").findOnce()
                    if (搜索 != null) {
                        // log(搜索.text())
                        搜索.click()
                        sleep(2000)
                    }
                }
                var 滑动浏览30秒 = textStartsWith("浏览本页面").textContains("秒后").findOnce()
                if (滑动浏览30秒 != null) {
                    // log(滑动浏览30秒.text())
                    m++
                    if (f == 0) {
                        ii = -20
                        f = 1
                    }
                    scrollForward()
                    sleep(3000)
                } else {
                    if (m >= 3) {
                        break
                    }
                }
                sleep(1000)
            }
            for (var ccv = 0; ccv < 5; ccv++) {
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 == null) {
                    back()
                }
                if (去赚元宝 != null) {
                    break
                }
                sleep(2000)
            }
        }
        function 加100() {
            log("+100")
            for (var ii = 0; ii < 21; ii++) {
                var 已完成 = text("已完成").findOnce()
                if (已完成 != null) {
                    // log(已完成.text())
                    back()
                    sleep(2000)
                }
                var 首页 = desc("首页").findOnce()
                if (首页 != null) {
                    首页.click()
                    sleep(2000)
                }
                var 签到 = desc("签到").findOnce()
                if (签到 != null) {
                    签到.click()
                    sleep(2000)
                }
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 != null) {
                    var 框加100 = text("O1CN01CsbvTL1bz4r9cdN8e_!!6000000003535-2-tps-59-43.png_").findOnce()
                    if (框加100 != null) {
                        var fw = 框加100.parent().parent().parent().bounds()
                        var 后可领 = text("后可领").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                        if (后可领 != null) {
                            log(后可领.text())
                            break
                        } else {
                            var a框加100 = text("O1CN01CsbvTL1bz4r9cdN8e_!!6000000003535-2-tps-59-43.png_").findOnce()
                            if (a框加100 != null) {
                                a框加100.click()
                            } else {
                                break
                            }
                        }
                    }
                }
                sleep(1000)
            }
        }
        function 任务签到() {
            log("签到")
            back()
            var d = 0
            for (var ii = 0; ii < 11; ii++) {
                var 已完成 = text("已完成").findOnce()
                if (已完成 != null) {
                    // log(已完成.text())
                    back()
                    sleep(2000)
                }
                var 首页 = desc("首页").findOnce()
                if (首页 != null) {
                    首页.click()
                    sleep(2000)
                }
                var 签到 = desc("签到").findOnce()
                if (签到 != null) {
                    签到.click()
                    sleep(2000)
                }
                var 连续打卡赚元宝 = text("连签越多领越多").findOnce()
                if (连续打卡赚元宝 != null) {
                    var 签到手指 = text("O1CN01WMxEPd1DyZX55YeeW_!!6000000000285-54-tps-210-200").findOnce()
                    if (签到手指 != null) {
                        log(签到手指.bounds())
                        签到手指.parent().click()
                        sleep(2000)
                    } else {
                        log("签到完成11")
                        break
                    }
                }
                var 每天签到领现金 = text("每天签到领现金").findOnce()
                if (每天签到领现金 != null) {
                    var 立即提现 = text("立即提现").findOnce()
                    if (立即提现 != null) {
                        log(立即提现.bounds())
                        立即提现.parent().click()
                        sleep(2000)
                    } else {
                        log("签到完成22")
                        break
                    }
                }
                var 立即收下 = text("立即收下").findOnce()
                if (立即收下 != null) {
                    // log(立即收下.text())
                    立即收下.click()
                    sleep(3000)
                }
                sleep(1000)
                log("签到" + ii)
            }
            for (var ccv = 0; ccv < 5; ccv++) {
                var 去赚元宝 = text("去赚元宝").findOnce()
                if (去赚元宝 == null) {
                    back()
                }
                if (去赚元宝 != null) {
                    break
                }
                sleep(2000)
            }
        }
        function 启动淘宝签到() {
            log("进入淘宝")
            滑动验证()
            app.launchPackage("com.taobao.taobao")
            var d = 0
            var shu = 1
            for (var sas = 0; sas < 43; sas++) {
                滑动验证()
                var 我知道了 = text("我知道了").findOnce()
                if (我知道了 != null) {
                    我知道了.click()
                    sleep(1000)
                }
                if (sas == 10 || sas == 20 || sas == 30) {
                    app.launchPackage("com.taobao.taobao")
                    sleep(400)
                }
                var 淘宝 = textStartsWith("淘宝").clickable(true).findOnce() || descStartsWith("淘宝").clickable(true).findOnce() || textStartsWith("手机淘宝").clickable(true).findOnce() || descStartsWith("手机淘宝").clickable(true).findOnce()
                if (淘宝 != null) {
                    log("淘宝--" + d)
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        淘宝.click()
                        sleep(400)
                    }
                    d = d + 1
                    if (d >= 15) {
                        d = 1
                    }
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }

                if (text("我的淘宝").exists() && text("购物车").exists() || desc("我的淘宝").exists() && desc("购物车").exists()) {
                    ko = 1
                    break
                }
                if (text("去赚元宝").exists()) {
                    ko = 1
                    break
                }
                sleep(1000)
                log("启动淘宝43/" + sas)
                if (sas == 19 || sas == 29 || sas == 39) {
                    关闭所有后台()
                    home()
                    sleep(3000)
                    if (sas >= 39) {
                        log("进入淘宝签到失败")
                        ko = 1
                        break
                    }
                }
            }
        }
        function 启动闲鱼猪手() {
            log("启动闲鱼")
            var d = 0
            var shu = 1
            var ci = 0
            for (var sas = 0; sas < 30; sas++) {
                var a小程序名外 = text("闲鱼猪手").clickable(true).findOnce() || desc("闲鱼猪手").clickable(true).findOnce()
                if (a小程序名外 != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        a小程序名外.click()
                        sleep(400)
                    }
                    d = d + 1
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                var 猪手包名 = packageName("com.skyhand.fishhelper").findOnce()
                if (猪手包名 != null) {
                    log("在猪手")
                    sleep(5000)
                    b = 1
                    break
                }

                sleep(1000)
                if (sas >= 20) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {
                    ci = 0
                    home()
                    break
                }
            }
        }
        function 启动应用转生() {
            log("启动应用转生")
            var d = 0
            var shu = 1
            var ci = 0
            for (var sas = 0; sas < 30; sas++) {
                var a小程序名外 = text("应用转生").clickable(true).findOnce() || desc("应用转生").clickable(true).findOnce()
                if (a小程序名外 != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        a小程序名外.click()
                        sleep(400)
                    }
                    d = d + 1
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                var 应用转生包名 = packageName("com.bug.xposed").findOnce()
                if (应用转生包名 != null) {
                    log("在应用转生")
                    sleep(5000)
                    b = 1
                    break
                }

                sleep(1000)
                if (sas >= 20) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {
                    ci = 0
                    home()
                    break
                }
            }
        }
        function 启动LSPatch() {
            log("启动LSP")
            var d = 0
            var shu = 1
            var ci = 0
            for (var sas = 0; sas < 30; sas++) {
                var a小程序名外 = text("LSPatch").clickable(true).findOnce() || desc("LSPatch").clickable(true).findOnce()
                if (a小程序名外 != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        a小程序名外.click()
                        sleep(5000)
                    }
                    d = d + 1
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                var 咸鱼l = packageName("org.lsposed.lspatch").text("闲鱼").findOnce()
                if (咸鱼l != null) {
                    log("已经打开LSPatch")
                    sleep(5000)
                    b = 1
                    break
                }
                var 管理 = text("管理").findOnce() || desc("管理").findOnce()
                if (管理 != null) {
                    管理.parent().click()
                    sleep(3000)
                }
                for (var hu = 0; hu < 30; hu++) {
                    var 加载中 = text("加载中").findOnce()
                    if (加载中 != null) {
                        log("加载中")
                    }
                    if (加载中 == null) {
                        break
                    }
                    sleep(1000)
                }
                sleep(1000)
                if (sas >= 20) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {
                    ci = 0
                    home()
                    break
                }
            }
        }
        function 启动咸鱼() {
            log("启动闲鱼")
            var d = 0
            var shu = 1
            var ci = 0
            for (var sas = 0; sas < 30; sas++) {
                var a小程序名外 = text("闲鱼").clickable(true).findOnce() || desc("闲鱼").clickable(true).findOnce()
                if (a小程序名外 != null) {
                    if (d == 0 || d == 3 || d == 7 || d == 11 || d == 15) {
                        a小程序名外.click()
                        sleep(400)
                    }
                    d = d + 1
                } else {
                    var 第n屏 = text("第" + shu + "屏").clickable(true).findOnce() || desc("第" + shu + "屏").clickable(true).findOnce()
                    if (第n屏 != null) {
                        第n屏.click()
                        sleep(2000)
                        shu++
                    } else {
                        shu = 1
                    }
                }
                var 闲鱼包名 = packageName("com.taobao.idlefish").findOnce()
                if (闲鱼包名 != null) {
                    log("在闲鱼")
                    b = 1
                    break
                }
                sleep(1000)
                if (sas >= 20) {
                    ci = ci + 1
                    复位9 = 0
                    home()
                }
                if (ci >= 2) {
                    ci = 0
                    home()
                    break
                }
            }
        }
        function 薅羊毛赚话费a() {
            log("薅羊毛赚话费检查")
            var fu2 = 0
            for (var kj = 0; kj < 20; kj++) {
                var 闲鱼签到 = text("闲鱼签到").clickable(true).findOnce() || desc("闲鱼签到").clickable(true).findOnce()
                if (闲鱼签到 != null) {
                    闲鱼签到.click()
                    sleep(2000)
                }
                var 知道了 = desc("知道了").findOnce()
                if (知道了 != null) {
                    知道了.click()
                }
                /////签到
                var 我的经验 = descStartsWith("我的经验").findOnce()
                if (我的经验 != null) {
                    var ci = 我的经验.desc().toString().replace(/[^0-9]/ig, "");
                    var cci = ci / 200
                    log("cci:" + cci)
                    if (fu2 == 0) {
                        fu2 = 1
                        if (cci >= 20) {
                            kj = -(cci - 10)
                            if (kj >= 500) {
                                kj = -500
                            }
                        }
                    }
                    click(我的经验.bounds().centerX(), 我的经验.bounds().centerY());
                    sleep(1000)
                }
                var 提醒签到 = descStartsWith("提醒签到").findOnce()
                var 薅羊毛赚话费 = descContains("薅羊毛赚话费").findOnce()
                if (薅羊毛赚话费 != null && 提醒签到 != null) {
                    var fw = 薅羊毛赚话费.bounds()
                    var 已完成 = desc("已完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (已完成 != null) {
                        log("已完成")
                        break
                    }
                    var 领取奖励 = desc("领取奖励").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (领取奖励 != null) {
                        log("领取奖励")
                        领取奖励.click()
                        sleep(2000)
                    }
                    var 去完成 = desc("去完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                    if (去完成 != null) {
                        log("去完成")
                        去完成.click()
                        sleep(5000)
                        var 去完成a = desc("去完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                        if (去完成a == null) {
                            log("等待执行任务20秒")
                            for (var i = 0; i < 20; i++) {
                                sleep(1000)
                            }
                        }
                    }
                } else if (薅羊毛赚话费 == null && 提醒签到 != null) {
                    log("已完成22")
                    break
                }

                sleep(1000)
            }
        }
        function 点击指定频道好物a() {
            log("指定频道好物检查")
            var fu = 0
            var fu1 = 0
            var fu2 = 0
            var gb = 0
            for (var gkj = 0; gkj < 3; gkj++) {
                var 闲鱼包名 = packageName("com.taobao.idlefish").findOnce()
                if (闲鱼包名 == null) {
                    log("重新启动闲鱼")
                    启动咸鱼()
                    sas = 0
                }
                for (var kj = 0; kj < 20; kj++) {
                    var 店s = descEndsWith("店").clickable(true).find().size()
                    if (店s == 3) {
                        log("随机选店铺")
                        var g = random(0, 2)
                        var 店 = descEndsWith("店").clickable(true).findOnce(g)
                        if (店 != null) {
                            log(店.desc())
                            var y = (店.bounds().bottom - 店.bounds().top) / 3.14 + 店.bounds().bottom
                            var x = Number(ui.xmds44.text()) / 2
                            店.click()
                            sleep(2000)
                            log(x + "," + y)
                            log("选好了")
                            click(x, y)
                            sleep(2000)
                        }
                    }
                    var 闲鱼签到 = text("闲鱼签到").clickable(true).findOnce() || desc("闲鱼签到").clickable(true).findOnce()
                    if (闲鱼签到 != null) {
                        闲鱼签到.click()
                        sleep(2000)
                    }
                    var 知道了 = desc("知道了").findOnce()
                    if (知道了 != null) {
                        知道了.click()
                    }
                    /////签到
                    var 我的经验 = descStartsWith("我的经验").findOnce()
                    if (我的经验 != null) {
                        var ci = 我的经验.desc().toString().replace(/[^0-9]/ig, "");
                        var cci = ci / 200
                        log("cci:" + cci)
                        if (fu2 == 0) {
                            fu2 = 1
                            if (cci >= 20) {
                                kj = -(cci - 10)
                                if (kj >= 500) {
                                    kj = -500
                                }
                            }
                        }
                        click(我的经验.bounds().centerX(), 我的经验.bounds().centerY());
                        sleep(2000)
                    }
                    var 提醒签到 = descStartsWith("提醒签到").findOnce()
                    var 点击指定频道好物 = descContains("指定频道好物").findOnce()
                    if (点击指定频道好物 != null && 提醒签到 != null) {
                        var fw = 点击指定频道好物.bounds()
                        var 去完成 = desc("去完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                        if (去完成 != null) {
                            log("去完成")
                            去完成.click()
                            sleep(2000)
                            if (fu1 == 0) {
                                fu1 = 1
                                kj = 0
                            }
                        }
                        var 已完成 = desc("已完成").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                        if (已完成 != null) {
                            log("已完成")
                            back()
                            gb = 1
                            break
                        }
                        var 领取奖励 = desc("领取奖励").boundsInside(fw.left, fw.top, fw.right, fw.bottom).findOnce()
                        if (领取奖励 != null) {
                            log("领取奖励")
                            领取奖励.click()
                            sleep(2000)
                        }
                    } else if (点击指定频道好物 == null && 提醒签到 != null) {
                        log("已完成22")
                        back()
                        gb = 1
                        break
                    }
                    var 浏览 = desc("浏览").findOnce()
                    var 秒可得 = desc("秒，可得").findOnce()
                    if (秒可得 != null && 浏览 != null) {
                        log(秒可得.desc())
                        sleep(3000)
                        scrollForward()
                        sleep(1000)
                        if (fu == 0) {
                            fu = 1
                            kj = 0
                        }
                    }
                    var 已获得 = desc("已获得").findOnce()
                    if (已获得 != null) {
                        back()
                        break
                    }
                    sleep(1000)
                }
                if (gb == 1) {
                    break
                }
                sleep(1000)
            }
        }
        function 明日可领() {
            log("今日已完成检查")
            for (var kj = 0; kj < 20; kj++) {
                var 闲鱼签到 = text("闲鱼签到").clickable(true).findOnce() || desc("闲鱼签到").clickable(true).findOnce()
                if (闲鱼签到 != null) {
                    闲鱼签到.click()
                }
                var 点击领取 = desc("点击领取").findOnce()
                if (点击领取 != null) {
                    log(点击领取.desc())
                    点击领取.click()
                    sleep(2000)
                }
                var 知道了 = desc("知道了").findOnce()
                if (知道了 != null) {
                    log(知道了.desc())
                    知道了.click()
                    sleep(2000)
                }
                var 我的经验 = textStartsWith("我的经验").findOnce() || descStartsWith("我的经验").findOnce()
                if (我的经验 != null) {
                    var 明日可领 = text("明日可领").findOnce() || desc("明日可领").findOnce()
                    if (明日可领 != null) {
                        log("今日已完成")
                        写入文件("闲鱼今日日期号", 日())
                        break
                    }
                    sleep(1000)
                }
                var 店s = descEndsWith("店").clickable(true).find().size()
                log(店s)
                if (店s == 3) {
                    log("随机选店铺")
                    var g = random(0, 2)
                    var 店 = descEndsWith("店").clickable(true).findOnce(g)
                    if (店 != null) {
                        log(店.desc())
                        var y = (店.bounds().bottom - 店.bounds().top) / 3.14 + 店.bounds().bottom
                        var x = Number(ui.xmds44.text()) / 2
                        店.click()
                        sleep(2000)
                        log(x + "," + y)
                        log("选好了")
                        click(x, y)
                        sleep(2000)
                    }
                }
                sleep(1000)
            }
        }
        function 我的经验一领取奖励() {
            var hb = 0
            log("我的经验检查")
            for (var kj = 0; kj < 50; kj++) {
                var 闲鱼签到 = text("闲鱼签到").clickable(true).findOnce() || desc("闲鱼签到").clickable(true).findOnce()
                if (闲鱼签到 != null) {
                    闲鱼签到.click()
                    sleep(2000)
                }
                var 闲鱼签到 = text("闲鱼签到").clickable(true).findOnce() || desc("闲鱼签到").clickable(true).findOnce()
                if (闲鱼签到 != null) {
                    闲鱼签到.click()
                    sleep(2000)
                }
                /////签到
                var 我的经验 = descStartsWith("我的经验").findOnce()
                if (我的经验 != null) {
                    var dd = Number(我的经验.desc().split('我的经验')[1])
                    log("我的经验" + dd)
                    click(我的经验.bounds().centerX(), 我的经验.bounds().centerY());//点击中心点
                    sleep(2000)
                }
                var 提醒签到 = descStartsWith("提醒签到").findOnce()
                if (提醒签到 != null) {
                    var 领取奖励 = desc("领取奖励").findOnce()
                    if (领取奖励 != null) {
                        领取奖励.click()
                        sleep(2000)
                    } else {
                        hb++
                        back()
                        sleep(2000)
                    }
                }
                if (hb >= 2) {
                    break
                }
                var 店s = descEndsWith("店").clickable(true).find().size()
                log(店s)
                if (店s == 3) {
                    log("随机选店铺")
                    var g = random(0, 2)
                    var 店 = descEndsWith("店").clickable(true).findOnce(g)
                    if (店 != null) {
                        log(店.desc())
                        var y = (店.bounds().bottom - 店.bounds().top) / 3.14 + 店.bounds().bottom
                        var x = Number(ui.xmds44.text()) / 2
                        店.click()
                        sleep(2000)
                        log(x + "," + y)
                        log("选好了")
                        click(x, y)
                        sleep(2000)
                    }
                }
                sleep(1000)
            }
        }
        // /////////////////////
        function 老铁领红包余额对比() {
            var 控件 = text("可提现余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("可兑换现金").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {

                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 连码有钱余额对比() {
            var 控件 = text("可用金币").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            //   log("===111---" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    } else {
                        // for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                        //     var sonList2 = sonList1.child(i2);
                        //     if (sonList2.childCount() == 0) {
                        //         if (sonList1.child(i2).text() != "") {
                        //          //   log("===222----" + sonList1.child(i2).text())
                        //             arr.push(sonList1.child(i2).text());
                        //         }
                        //     }
                        // }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 任务连码提现里余额对比() {
            var 控件 = textStartsWith("我的金币：").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                yu额a = 控件.text().replace(/[^0-9]/ig, "");
            }
        }
        function 花小钱余额对比() {
            var 控件 = text("我的余额:").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1).text());
                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("我的金币:").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        var sonList1 = 控件.parent().child(i1);
                        if (sonList1.childCount() == 0) {
                            if (控件.parent().child(i1).text() != "") {
                                // log("===111" + 控件.parent().child(i1).text())
                                arr.push(控件.parent().child(i1).text());
                            }
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 一路余额对比() {
            var 控件 = text("可提现余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().parent().child(i1).text() != "") {
                        //     log("===111" + 控件.parent().parent().child(i1).text())
                        //     arr.push(控件.parent().parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("可兑换现金").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().parent().child(i1).text() != "") {
                        //     log("===111" + 控件.parent().parent().child(i1).text())
                        //     arr.push(控件.parent().parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 天天攒钱余额对比() {
            var 控件 = textStartsWith("今日收益").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                yu额a = 控件.text().replace(/[^0-9]/ig, "");
            }
        }
        function 超级余额对比() {
            var 控件 = text("可提现余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 今日任务余额对比() {
            var 控件 = textStartsWith("可提现").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().child(i1).text() != "") {
                        //     log("===111" + 控件.parent().child(i1).text())
                        //     arr.push(控件.parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222----" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 领小钱余额对比() {
            var 控件 = textStartsWith("￥").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                yu额a = 控件.text().replace(/[^0-9]/ig, "");
            }
        }
        function 天天乐抽奖余额对比() {
            var 控件 = textEndsWith("个").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                yu额a = 控件.text().replace(/[^0-9]/ig, "");
            }
        }
        function 点点成金余额对比() {
            var 控件 = text("可提现金额").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 有礼有钱余额对比() {
            var 控件 = text("金币余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().parent().child(i1).text() != "") {
                        //     log("===111" + 控件.parent().parent().child(i1).text())
                        //     arr.push(控件.parent().parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("现金余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().parent().child(i1).text() != "") {
                        //     log("===111" + 控件.parent().parent().child(i1).text())
                        //     arr.push(控件.parent().parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                // if (sonList1.child(i2).text() != "") {
                                //     log("===222" + sonList1.child(i2).text())
                                //     arr.push(sonList1.child(i2).text());
                                // }
                            } else {
                                for (var i3 = 0; i3 < sonList2.childCount(); i3++) {
                                    var asonList3 = sonList2.child(i3);
                                    if (asonList3.childCount() == 0) {
                                        if (sonList2.child(i3).text() != "") {
                                            // log("===333" + sonList2.child(i3).text())
                                            arr.push(sonList2.child(i3).text());
                                        }
                                    } else {
                                        log("完")
                                    }
                                }
                            }
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 流量钱包余额对比() {
            var 控件 = textStartsWith("今日已领").findOnce()
            if (控件 != null) {
                // log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111---" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 轩盛天天余额对比() {
            var 控件 = text("可提现余额").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 赚小钱余额对比() {
            var 控件 = text("可提现余额(元)").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {

                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    //   log("===222----" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            } else {

                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("我的金币(个)").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222---" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            }
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 集宝星球余额对比() {
            var 控件 = textStartsWith("今日已完成").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 每日签到余额对比() {
            var 控件 = textStartsWith("可用金币").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 集集攒余额对比() {
            var 控件 = text("累计获得集分宝总数").findOnce()
            if (控件 != null) {
                //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 天天集宝余额对比() {
            var 控件 = text("兑换集分宝").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 赚点是点余额对比() {
            var 控件 = text("个").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111---" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
            // ---------------------------------------------
            var 控件 = text("元").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        if (控件.parent().child(i1).text() != "") {
                            // log("===111----" + 控件.parent().child(i1).text())
                            arr.push(控件.parent().child(i1).text());
                        }
                    }
                }
                yu额b = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 天天有礼余额对比() {
            var 控件 = text("我的金币数").findOnce()
            if (控件 != null) {
                // //log(控件.text())
                var arr = [];
                for (var i1 = 0; i1 < 控件.parent().childCount(); i1++) {
                    var sonList1 = 控件.parent().child(i1);
                    if (sonList1.childCount() == 0) {
                        // if (控件.parent().child(i1).text() != "") {
                        //     log("===111---" + 控件.parent().child(i1).text())
                        //     arr.push(控件.parent().child(i1).text());
                        // }
                    } else {
                        for (var i2 = 0; i2 < sonList1.childCount(); i2++) {
                            var sonList2 = sonList1.child(i2);
                            if (sonList2.childCount() == 0) {
                                if (sonList1.child(i2).text() != "") {
                                    // log("===222----" + sonList1.child(i2).text())
                                    arr.push(sonList1.child(i2).text());
                                }
                            } else {

                            }
                        }
                    }
                }
                yu额a = arr.toString().replace(/[^0-9]/ig, "");
            }
        }
        function 走路余额对比() {
            var 去提现 = text("去提现").findOnce()
            if (去提现 != null) {
                // log(去提现.text())
                var fw = 去提现.bounds()
                var fww = 去提现.parent().bounds()
                var 控件 = textEndsWith("金币").boundsInside(fww.left, fw.top - (fw.bottom - fw.top) * 2, fw.left, fw.bottom + (fw.bottom - fw.top) * 2).findOnce()
                if (控件 != null) {
                    // //log(控件.text())
                    yu额a = 控件.text().replace(/[^0-9]/ig, "");
                }
            }
        }
        function zcx() {
            if (ui.开启检测假死重启id.checked == true) {
                try {
                    var jias = threads.start(function () {
                        写入文件("假死检测完毕", 0)
                        function 写入文件(a路径, a写入) {
                            //文件路径
                            var path = "/sdcard/" + a路径 + ".txt";
                            //要写入的文件内容

                            //以写入模式打开文件
                            var file = open(path, "w");
                            //写入文件
                            file.write(a写入);
                            //关闭文件
                            file.close();
                        }
                        无障碍假死检测a()
                        function 无障碍假死检测a() {
                            engines.all().map((ScriptEngine) => {
                                if (engines.myEngine().toString() !== ScriptEngine.toString()) {
                                    ScriptEngine.forceStop();
                                }
                            });
                            importClass(android.graphics.drawable.GradientDrawable);
                            let view = ui.inflate(
                                <vertical>
                                    <button id="dismiss" text="【无障碍假死检测...】" style="Widget.AppCompat.Button.Colored" />
                                    <horizontal w="*" gravity="right">
                                        <text>检测倒计时</text>
                                        <text id="countdown" textColor="#5373e6" padding="8 0 8 0">
                                            3
                                        </text>
                                        <text>秒后关闭</text>
                                    </horizontal>
                                </vertical>,
                                null,
                                false
                            );
                            view.dismiss.click(function () {
                                dialog.dismiss();
                                写入文件("假死检测完毕", 1)
                            });
                            let dialog = dialogs.build({
                                customView: view,
                            });
                            // dialog.setCanceledOnTouchOutside(false); //点击dialog其它地方dismiss无效
                            let dialogWindow = dialog.getWindow();
                            setBackgroundRoundRounded(dialogWindow);
                            dialog.setOnKeyListener({
                                onKey: function (dialog, keyCode, event) {
                                    if (keyCode === KeyEvent.KEYCODE_BACK) {
                                        // toastLog("点击了返回键");
                                        return true;
                                    }
                                    return false;
                                },
                            });
                            let AUTO_DISMISS_MILLIS = 3000;
                            let countDownTimer = JavaAdapter(
                                android.os.CountDownTimer,
                                {
                                    onTick: function (millisUntilFinished) {
                                        ui.run(function () {
                                            view.countdown.setText("" + parseInt(millisUntilFinished / 1000));
                                        });
                                    },
                                    onFinish: function () {
                                        if (dialog.isShowing()) {
                                            dialog.dismiss();
                                            无障碍假死检测b()
                                        }
                                    },
                                },
                                AUTO_DISMISS_MILLIS,
                                300
                            );
                            dialog.setOnShowListener(
                                new android.content.DialogInterface.OnShowListener({
                                    onShow: function (dialog) {
                                        countDownTimer.start();
                                    },
                                })
                            );

                            dialog.show();
                            /* -------------------------------------------------------------------------- */
                            function setBackgroundRoundRounded(view) {
                                let gradientDrawable = new GradientDrawable();

                                gradientDrawable.setShape(GradientDrawable.RECTANGLE);

                                gradientDrawable.setColor(colors.parseColor("#c8e6c9"));

                                gradientDrawable.setCornerRadius(60);

                                view.setBackgroundDrawable(gradientDrawable);
                            }
                            for (var ii = 0; ii < 5; ii++) {
                                var guanb = text("【无障碍假死检测...】").findOnce()
                                if (guanb != null) {
                                    click(guanb.bounds().centerX(), guanb.bounds().centerY());//点击中心点
                                }
                                sleep(1000)
                            }
                        }
                        function 无障碍假死检测b() {
                            engines.all().map((ScriptEngine) => {
                                if (engines.myEngine().toString() !== ScriptEngine.toString()) {
                                    ScriptEngine.forceStop();
                                }
                            });
                            importClass(android.graphics.drawable.GradientDrawable);
                            let view = ui.inflate(
                                <vertical>
                                    <button id="dismiss" text="【无障碍已假死】！！！" style="Widget.AppCompat.Button.Colored" />
                                    <button id="adismiss" text="1，建议重启手机解决！" style="Widget.AppCompat.Button.Colored" />
                                    <button id="bdismiss" text="2，否则部分平台功能做不了。" style="Widget.AppCompat.Button.Colored" />
                                    <horizontal w="*" gravity="right">
                                        <text>倒计时</text>
                                        <text id="countdown" textColor="#5373e6" padding="8 0 8 0">
                                            3
                                        </text>
                                        <text>秒后关闭</text>
                                    </horizontal>
                                </vertical>,
                                null,
                                false
                            );
                            view.dismiss.click(function () {
                                dialog.dismiss();
                            });
                            let dialog = dialogs.build({
                                customView: view,
                            });
                            // dialog.setCanceledOnTouchOutside(false); //点击dialog其它地方dismiss无效
                            let dialogWindow = dialog.getWindow();
                            setBackgroundRoundRounded(dialogWindow);
                            dialog.setOnKeyListener({
                                onKey: function (dialog, keyCode, event) {
                                    if (keyCode === KeyEvent.KEYCODE_BACK) {
                                        // toastLog("点击了返回键");
                                        return true;
                                    }
                                    return false;
                                },
                            });
                            let AUTO_DISMISS_MILLIS = 1000;
                            let countDownTimer = JavaAdapter(
                                android.os.CountDownTimer,
                                {
                                    onTick: function (millisUntilFinished) {
                                        ui.run(function () {
                                            view.countdown.setText("" + parseInt(millisUntilFinished / 1000));
                                        });
                                    },
                                    onFinish: function () {
                                        if (dialog.isShowing()) {
                                            dialog.dismiss();
                                            重启()
                                        }
                                    },
                                },
                                AUTO_DISMISS_MILLIS,
                                300
                            );
                            dialog.setOnShowListener(
                                new android.content.DialogInterface.OnShowListener({
                                    onShow: function (dialog) {
                                        countDownTimer.start();
                                    },
                                })
                            );

                            dialog.show();
                            /* -------------------------------------------------------------------------- */
                            function setBackgroundRoundRounded(view) {
                                let gradientDrawable = new GradientDrawable();

                                gradientDrawable.setShape(GradientDrawable.RECTANGLE);

                                gradientDrawable.setColor(colors.parseColor("#c8e6c9"));

                                gradientDrawable.setCornerRadius(60);

                                view.setBackgroundDrawable(gradientDrawable);
                            }
                        }
                        function 重启() {
                            for (var i = 1; i < 100; i++) {
                                powerDialog()
                                sleep(4000)
                                var 重启 = text("重启").findOnce() || desc("重启").findOnce()
                                if (重启) {
                                    for (var hw1 = 1; hw1 < 100; hw1++) {
                                        var 点 = clickable(true).findOnce(hw1)
                                        if (点) {
                                            点.click()
                                        }
                                    }
                                }
                                var 点击重启 = text("点击重启").findOnce() || desc("点击重启").findOnce()
                                if (点击重启) {
                                    for (var hw2 = 1; hw2 < 100; hw2++) {
                                        var 点a = clickable(true).findOnce(hw2)
                                        if (点a) {
                                            点a.click()
                                        }
                                    }
                                }
                            }
                        }
                    });
                    for (var wza = 10; wza > 0; wza--) {
                        log("无障碍假死检测10秒" + wza)
                        sleep(2000)
                        if (Number(读取文件("假死检测完毕")) == 1) {
                            log("无障碍假死检测正常")
                            break
                        }
                    }
                    jias.interrupt()
                } catch (e) {
                    log("哎呀！！！")
                }
            }
            // try {
            if (Number(读取文件("记忆")) == "" || Number(读取文件("记忆")) < 1) {
                log("重置记忆")
                写入文件("记忆", 1)//
            }
            if (ui.XY随机id.checked == true && random(1, 6) > 3 && Number(日()) != Number(读取文件("闲鱼今日日期号")) || ui.XY随机id.checked == true && Number(时()) >= 22 && Number(日()) != Number(读取文件("闲鱼今日日期号"))) {
                启动应用转生()
            }
            var fwa = 0
            while (true) {
                if (device.getBattery() <= Number(ui.xmds48.text())) {
                    if (fwa == 0) {
                        fwa = 1
                        关闭所有后台()
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                    }
                }
                if (device.getBattery() >= Number(ui.xmds49.text())) {
                    关闭所有后台()
                    break
                }
                if (Number(时()) >= Number(ui.xmds46.text()) && Number(时()) <= Number(ui.xmds47.text())) {
                    if (fwa == 0) {
                        fwa = 1
                        关闭所有后台()
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                        log("补充电量中。。。")
                    }
                } else {
                    break
                }
                // log(Number(时()))
                // log(Number(ui.xmds47.text()))
                // if (Number(时()) >= Number(ui.xmds47.text())) {
                //     关闭所有后台()
                //     break
                // }
                sleep(5000)
            }
            if (Number(读取文件("记忆")) == 1) {/////老铁
                if (ui.xmpt1.checked == true) {
                    if (时间计算整理(Number(ui.xmds1.text()), Number(ui.xmds2.text()))) {
                        log("")
                        log("")
                        log("运行【老铁领红包】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("老铁领红包", "老铁领红包", "做任务赚钱")
                            if (ko == 2) {
                                break
                            }
                            // log("------")
                            if (ko == 1) {
                                任务老铁()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务老铁()
                            }
                            // log("=====")
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("老铁领红包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("老铁领红包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                老铁领红包余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                // 关闭老铁()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("老铁领红包", "老铁领红包", "做任务赚钱")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 2)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 2) {/////连码有钱
                if (ui.xmpt2.checked == true) {
                    if (时间计算整理(Number(ui.xmds3.text()), Number(ui.xmds4.text()))) {
                        log("")
                        log("")
                        log("运行【连码有钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("连码有钱", "连码有钱", "可用金币")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务连码()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务连码()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("连码有钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("连码有钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                log("点击失败----")
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                连码有钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }

                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("连码有钱", "连码有钱", "可用金币")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                        // //////////////////////////////////////////
                        log("连码2")
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序2("连码有钱", "可用金币", "金币记录 >", "注：兑换成功后可在支付宝账单查看兑换现金记录", 3)
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务连码提现里()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务连码提现里()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("连码有钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("兑换现金").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                log("点击失败----")
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                任务连码提现里余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 3)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 3) {/////花小钱
                if (ui.xmpt3.checked == true) {
                    if (时间计算整理(Number(ui.xmds5.text()), Number(ui.xmds6.text()))) {
                        log("")
                        log("")
                        log("运行【花小钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序2("花小钱", "点击赚更多", "即将上线", "专属推荐", 1)
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务花小钱()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务花小钱()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("专属推荐").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("赚点小钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")

                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                var 赚点小钱 = textContains("赚点小钱").findOnce()
                                if (赚点小钱 != null) {
                                    back()
                                    sleep(3000)
                                }
                                var 花小钱 = text("花小钱").findOnce()
                                if (花小钱 != null) {
                                    // log(花小钱.text())
                                    var 我的 = text("我的").findOnce()
                                    if (我的 != null) {
                                        // log(我的.text())
                                        我的.parent().click()
                                        sleep(2000)
                                    }
                                }
                                花小钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                                sleep(2000)
                                var 首页 = text("首页").findOnce()
                                if (首页 != null) {
                                    // log(首页.text())
                                    首页.parent().click()
                                    sleep(2000)
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 4)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 4) {/////一路
                if (ui.xmpt4.checked == true) {
                    if (时间计算整理(Number(ui.xmds7.text()), Number(ui.xmds8.text()))) {
                        log("")
                        log("")
                        log("运行【一路向钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("一路向钱", "一路向钱", "做任务赚钱")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务一路()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务一路()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("一路向钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("一路向钱").findOnce()
                                    if (zhy != null) {
                                        // log("一路向钱===")
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                一路余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭一路向前()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("一路向钱", "一路向钱", "做任务赚钱")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 5)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 5) {/////天天攒钱
                if (ui.xmpt5.checked == true) {
                    if (时间计算整理(Number(ui.xmds9.text()), Number(ui.xmds10.text()))) {
                        log("")
                        log("")
                        log("运行【天天攒钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("天天攒零钱", "任务可以获得额外奖励", "每日任务")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务天天攒零钱()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务天天攒零钱()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("每日任务").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("每日任务").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                天天攒钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭天天攒钱()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("天天攒零钱", "任务可以获得额外奖励", "每日任务")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 6)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 6) {/////超级
                if (ui.xmpt6.checked == true) {
                    if (时间计算整理(Number(ui.xmds11.text()), Number(ui.xmds12.text()))) {
                        log("")
                        log("")
                        log("运行【超级直播间】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("超级直播间", "超级直播间", "做任务赚钱")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务超级()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务超级()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("超级直播间").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("超级直播间").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                超级余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭超级直播间()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("超级直播间", "超级直播间", "做任务赚钱")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 7)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 7) {/////今日任务
                if (ui.xmpt7.checked == true) {
                    if (时间计算整理(Number(ui.xmds13.text()), Number(ui.xmds14.text()))) {
                        log("")
                        log("")
                        log("运行【今日任务】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("今日任务", "今日任务", "去提现")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务今日()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务今日()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("今日任务").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("今日任务").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                今日任务余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("今日任务", "今日任务", "去提现")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 8)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 8) {/////领小钱
                if (ui.xmpt8.checked == true) {
                    if (时间计算整理(Number(ui.xmds15.text()), Number(ui.xmds16.text()))) {
                        log("")
                        log("")
                        log("运行【领小钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("领小钱", "今日已赚", "做任务 领现金红包")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务领小钱()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务领小钱()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("做任务 领现金红包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("做任务 领现金红包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                领小钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 9)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 9) {/////天天乐抽奖
                if (ui.xmpt9.checked == true) {
                    if (时间计算整理(Number(ui.xmds17.text()), Number(ui.xmds18.text()))) {
                        log("")
                        log("")
                        log("运行【天天乐抽奖】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            // log("===========")
                            启动小程序1("天天乐抽奖", "天天领现金福利", "每日任务")
                            // log("------------" + b)
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                天天乐抽奖()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                天天乐抽奖()
                            }
                            // log("------------222")
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("天天领现金福利").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天领现金福利").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                天天乐抽奖余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("天天乐抽奖", "天天领现金福利", "每日任务")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                    log("")
                    log("")
                    log("运行【天天乐抽奖2】")
                    b = 0
                    yu额a = 0
                    yu额b = 0
                    关注sbc = 0
                    rsj = 0
                    pcrw = 0
                    ra = 0
                    yuea = 0
                    rwjs = 0
                    for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                        ko = 2
                        // log("------------")
                        启动小程序1("天天乐抽奖", "天天领现金福利", "每日任务")
                        // log("------------" + b)
                        if (ko == 2) {
                            break
                        }
                        if (ko == 1) {
                            天天乐抽奖2()
                        }
                        // log("===============")
                        for (var ixh = 0; ixh < 10; ixh++) {
                            if (pcrw != 1 || b == 0) {
                                break
                            }
                            天天乐抽奖2()
                        }
                        if (ra == 1) {
                            sleep(1000)
                            let limitTime = rsj * 1000
                            toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                            let lastTime = new Date().getTime();
                            for (var sjs = 0; sjs < 67; sjs++) {
                                sleep(1000)
                                let currentTime = new Date().getTime();
                                if (currentTime - lastTime > limitTime) {
                                    break
                                }
                                var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                var 入会 = text("入会").findOnce()
                                var 点击关注店铺 = text("点击关注店铺").findOnce()
                                if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                    关注善后1()
                                    break
                                }
                                var zhy = textContains("天天领现金福利").findOnce()
                                if (zhy != null) {
                                    break
                                }
                                var 向右滑动验证 = text("向右滑动验证").findOnce()
                                if (向右滑动验证 != null) {
                                    滑动验证()
                                }
                                通用执行任务()
                            }
                            //    log("返回")
                            for (var f = 0; f < 10; f++) {
                                var zhy = textContains("天天领现金福利").findOnce()
                                if (zhy != null) {
                                    break
                                }
                                var 退出 = text("退出").findOnce()
                                if (退出 != null) {
                                    //      log("退出:" + 退出.text())
                                    退出.click()
                                    sleep(2000)
                                }
                                back()
                                sleep(800)
                            }
                            //  log("if (ra == 1) {")
                        }
                        if (ra == 2) {

                            关注生活()
                            a复位()
                        }
                        ra = 0
                        if (b == 0) {
                            rwjs = rwjs + 1
                            天天乐抽奖余额对比()
                            if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                yuea = yu额a + yu额b
                                // //  log("余额：" + yuea)
                                rwjs = 0
                                // log("收益变化")
                            } else {
                                // log("收益无变化")
                            }
                            if (rwjs >= 2) {
                                break
                            }

                        }
                    }
                }
                写入文件("记忆", 10)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 10) {/////点点成金
                if (ui.xmpt10.checked == true) {
                    if (时间计算整理(Number(ui.xmds19.text()), Number(ui.xmds20.text()))) {
                        log("")
                        log("")
                        log("运行【点点成金】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("点点成金", "每日任务", "每日任务")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务点点成金()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务点点成金()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("点点成金").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("点点成金").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                log("第轮====" + b)
                                rwjs = rwjs + 1
                                点点成金余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("点点成金", "每日任务", "每日任务")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 11)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 11) {/////有礼有钱
                if (ui.xmpt11.checked == true) {
                    if (时间计算整理(Number(ui.xmds21.text()), Number(ui.xmds22.text()))) {
                        log("")
                        log("")
                        log("运行【有礼有钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("有礼有钱", "有礼有钱", "做任务赚钱")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务有礼有钱()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务有礼有钱()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("有礼有钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("有礼有钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                有礼有钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭有礼有钱()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("有礼有钱", "有礼有钱", "做任务赚钱")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 12)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 12) {/////流量钱包
                if (ui.xmpt12.checked == true) {
                    if (时间计算整理(Number(ui.xmds23.text()), Number(ui.xmds24.text()))) {
                        log("")
                        log("")
                        log("运行【流量钱包】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序2("流量钱包", "做任务赚积分", "流量钱包", "刷新", 1)
                            if (ko == 2) {
                                break
                            }
                            // log("------")
                            if (ko == 1) {
                                流量钱包()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                流量钱包()
                            }
                            // log("=====")
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("流量钱包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("流量钱包").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                流量钱包余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                // 关闭老铁()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    if (packageName("com.eg.android.AlipayGphone").exists()) {
                                        var 做任务赚积分a = text("做任务赚积分").findOnce()
                                        var 刷新 = text("刷新").findOnce()
                                        if (刷新 != null && 做任务赚积分a != null) {
                                            log(刷新.text())
                                            刷新.click()
                                            sleep(3000)
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 13)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 13) {/////轩盛天天
                if (ui.xmpt13.checked == true) {
                    if (时间计算整理(Number(ui.xmds7.text()), Number(ui.xmds8.text()))) {
                        log("")
                        log("")
                        log("运行【轩盛天天翻牌】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("轩盛天天", "赚更多钱", "赚更多钱")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                翻牌()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                翻牌()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("即将上线").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天翻牌").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                轩盛天天余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭天天翻牌()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("轩盛天天", "赚更多钱", "赚更多钱")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 14)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 14) {/////赚小钱
                if (ui.xmpt14.checked == true) {
                    if (时间计算整理(Number(ui.xmds27.text()), Number(ui.xmds28.text()))) {
                        log("")
                        log("")
                        log("运行【赚小钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序2("赚小钱", "我要赚更多>>", "搜【赚小钱】 天天来领钱", "做任务赚零花钱", 1)
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务赚小钱()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务赚小钱()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("赚小钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("赚小钱").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                sleep(1000)
                                back()
                                sleep(2000)
                                赚小钱余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }

                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序2("赚小钱", "我要赚更多>>", "搜【赚小钱】 天天来领钱", "做任务赚零花钱", 1)
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 15)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 15) {/////集宝星球
                if (ui.xmpt15.checked == true) {
                    if (时间计算整理(Number(ui.xmds29.text()), Number(ui.xmds30.text()))) {
                        log("")
                        log("")
                        log("运行【集宝星球】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("集宝星球", "支付宝搜【集宝星球】", "赚钱任务")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务集宝星球()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务集宝星球()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("集宝星球").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("集宝星球").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                集宝星球余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }

                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("集宝星球", "支付宝搜【集宝星球】", "赚钱任务")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                        for (var vc = 0; vc < 4; vc++) {
                            var 待领取 = text("待领取").findOnce()
                            if (待领取 != null) {
                                log(待领取.text())
                                待领取.click()
                                sleep(2000)
                            } else {
                                break
                            }
                        }
                    }
                }
                写入文件("记忆", 16)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 16) {/////每日签到
                if (ui.xmpt16.checked == true) {
                    if (时间计算整理(Number(ui.xmds31.text()), Number(ui.xmds32.text()))) {
                        log("")
                        log("")
                        log("运行【每日签到】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("每日签到有礼", "天天福利社", "完成任务 赚红包")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务每日签到()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务每日签到()
                            }

                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("天天福利社").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天福利社").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            if (ra == 4) {
                                // log("ra == 4")
                                小程序点击父2()
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天福利社").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                // log("if (ra == 4) {")
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                每日签到余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭每日签到()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("每日签到有礼", "天天福利社", "完成任务 赚红包")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 17)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 17) {/////集集攒
                if (ui.xmpt17.checked == true) {
                    if (时间计算整理(Number(ui.xmds33.text()), Number(ui.xmds34.text()))) {
                        log("")
                        log("")
                        log("运行【集集攒】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("集集攒-", "集集攒", "可领")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务集集攒()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务集集攒()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("集集攒").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("集集攒").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            for (var ia = 0; ia < 10; ia++) {
                                var list = text("次").findOnce()
                                if (list != null) {
                                    if (list.parent().child(1).text() > 0) {
                                        list.parent().click()
                                        sleep(2000)
                                        break
                                    } else {
                                        ia = 9
                                        break
                                    }
                                }
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                集集攒余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                if (rwjs >= 2) {
                                    break
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 18)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 18) {/////天天集宝
                if (ui.xmpt18.checked == true) {
                    if (时间计算整理(Number(ui.xmds35.text()), Number(ui.xmds36.text()))) {
                        log("")
                        log("")
                        log("运行【天天集宝】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        soutext = 1
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("天天集宝", "天天集宝", "任务专区")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务天天集宝()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务天天集宝()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("天天集宝").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天集宝").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {
                                关注生活()
                                a复位()
                            }
                            if (ra == 3) {
                                // log("ra ==3")
                                小程序点击父()
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天集宝").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                // log("if (ra == 4) {")
                            }
                            if (ra == 4) {
                                // log("ra == 4")
                                小程序点击父2()
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天集宝").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                // log("if (ra == 4) {")
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                天天集宝余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭天天集宝()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("天天集宝", "天天集宝", "任务专区")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }

                        }
                    }
                }
                写入文件("记忆", 19)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 19) {/////赚点是点
                if (ui.xmpt19.checked == true) {
                    if (时间计算整理(Number(ui.xmds37.text()), Number(ui.xmds38.text()))) {
                        log("")
                        log("")
                        log("运行【赚点是点】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("赚点是点", "赚更多的钱", "玩任务赚现金")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务赚点是点()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务赚点是点()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("赚点是点").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("赚点是点").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                赚点是点余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭赚点是点()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("赚点是点", "赚更多的钱", "玩任务赚现金")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 20)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 20) {/////天天有礼
                if (ui.xmpt20.checked == true) {
                    if (时间计算整理(Number(ui.xmds39.text()), Number(ui.xmds40.text()))) {
                        log("")
                        log("")
                        log("运行【天天有礼】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        soutext = 1
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("天天有礼", "天天有礼", "每日任务")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务天天有礼()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务天天有礼()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("每日任务").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天有礼").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            if (ra == 4) {
                                // log("ra == 4")
                                小程序点击父()
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天有礼").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                // log("if (ra == 4) {")
                            }
                            if (ra == 5) {
                                // log("ra == 4")
                                小程序点击父2()
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("天天有礼").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                // log("if (ra == 4) {")
                            }
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                天天有礼余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭天天有礼()
                                if (rwjs >= 2) {
                                    break
                                }
                                if (rwjs == 1) {
                                    关闭所有后台()
                                    启动小程序1("天天有礼", "天天有礼", "每日任务")
                                    if (ko == 1) {
                                        if (packageName("com.eg.android.AlipayGphone").exists()) {
                                            滑动刷新()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                写入文件("记忆", 21)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 21) {/////走路
                if (ui.xmpt21.checked == true) {
                    if (时间计算整理(Number(ui.xmds41.text()), Number(ui.xmds42.text()))) {
                        log("")
                        log("")
                        log("运行【走路领钱】")
                        关闭所有后台()
                        b = 0
                        yu额a = 0
                        yu额b = 0
                        关注sbc = 0
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        yuea = 0
                        rwjs = 0
                        for (var rwjsz = 0; rwjsz < 50; rwjsz++) {
                            ko = 2
                            启动小程序1("走路领钱", "今日步数", "做任务赚金币")
                            if (ko == 2) {
                                break
                            }
                            if (ko == 1) {
                                任务走路()
                            }
                            for (var ixh = 0; ixh < 10; ixh++) {
                                if (pcrw != 1 || b == 0) {
                                    break
                                }
                                任务走路()
                            }
                            if (ra == 1) {
                                sleep(1000)
                                let limitTime = rsj * 1000
                                toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                let lastTime = new Date().getTime();
                                for (var sjs = 0; sjs < 67; sjs++) {
                                    sleep(1000)
                                    let currentTime = new Date().getTime();
                                    if (currentTime - lastTime > limitTime) {
                                        break
                                    }
                                    var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                    var 入会 = text("入会").findOnce()
                                    var 点击关注店铺 = text("点击关注店铺").findOnce()
                                    if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                        关注善后1()
                                        break
                                    }
                                    var zhy = textContains("做任务赚金币").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 向右滑动验证 = text("向右滑动验证").findOnce()
                                    if (向右滑动验证 != null) {
                                        滑动验证()
                                    }
                                    通用执行任务()
                                }
                                //    log("返回")
                                for (var f = 0; f < 10; f++) {
                                    var zhy = textContains("狂赚金币").findOnce()
                                    if (zhy != null) {
                                        break
                                    }
                                    var 退出 = text("退出").findOnce()
                                    if (退出 != null) {
                                        //      log("退出:" + 退出.text())
                                        退出.click()
                                        sleep(2000)
                                    }
                                    back()
                                    sleep(800)
                                }
                                //  log("if (ra == 1) {")
                            }
                            if (ra == 2) {

                                关注生活()
                                a复位()
                            }
                            // log("b==" + b)
                            ra = 0
                            if (b == 0) {
                                rwjs = rwjs + 1
                                走路余额对比()
                                if ((yu额a + yu额b) != yuea && (yu额a + yu额b) != 0) {
                                    yuea = yu额a + yu额b
                                    // //  log("余额：" + yuea)
                                    rwjs = 0
                                    // log("收益变化")
                                } else {
                                    // log("收益无变化")
                                }
                                //关闭走路领钱()
                                if (rwjs >= 2) {
                                    break
                                }

                            }
                        }
                    }
                }
                写入文件("记忆", 22)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 22) {/////淘宝签到
                if (ui.xmpt25.checked == true) {
                    if (时间计算整理(Number(ui.xmds67.text()), Number(ui.xmds68.text()))) {
                        ko = 2
                        启动淘宝签到()
                        if (ko == 1) {
                            任务签到()
                        }
                        ko = 2
                        for (var i = 0; i < 5; i++) {
                            启动淘宝签到()
                            if (ko == 1) {
                                任务逛精选好货赚元宝()
                            }
                            if (ko == 4) {
                                log("任务逛精选好货赚元宝完成444")
                                break
                            }
                            ko = 2
                        }
                        ko = 2
                        启动淘宝签到()
                        if (ko == 1) {
                            任务搜索你喜欢的宝贝()
                        }
                        ko = 2
                        启动淘宝签到()
                        if (ko == 1) {
                            加100()
                        }
                    }
                }
                写入文件("记忆", 23)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 23) {/////每日打卡
                // if (ui.xmpt26.checked == true) {
                // }
                写入文件("记忆", 24)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 24) {/////掌上
                if (ui.xmpt22.checked == true) {
                    if (时间计算整理(Number(ui.xmds50.text()), Number(ui.xmds51.text())) && Number(读取文件("掌上做任务上限日期号")) != Number(日())) {
                        log("")
                        log("")
                        log("运行【掌上有钱】")
                        b = 1
                        rsj = 0
                        pcrw = 0
                        ra = 0
                        rwjs = 0
                        while (true) {
                            关闭所有后台()
                            for (var rwjsz = 0; rwjsz < 200; rwjsz++) {
                                ko = 2
                                启动小程序2("掌上有钱", "查看更多任务", "全部任务", "全部任务", 1)
                                if (ko == 2) {
                                    break
                                }
                                if (ko == 1) {
                                    任务掌上有钱()
                                }
                                for (var ixh = 0; ixh < 10; ixh++) {
                                    if (pcrw != 1 || b == 0) {
                                        break
                                    }
                                    任务掌上有钱()
                                }
                                if (ra == 1) {
                                    sleep(1000)
                                    let limitTime = rsj * 1000
                                    toastLog("任务时间:" + (limitTime + Number(ui.xmds55.text()) * 1000) + "毫秒")
                                    let lastTime = new Date().getTime();
                                    for (var sjs = 0; sjs < 67; sjs++) {
                                        sleep(1000)
                                        let currentTime = new Date().getTime();
                                        if (currentTime - lastTime > limitTime) {
                                            break
                                        }
                                        var 点击订阅店铺 = text("点击订阅店铺").findOnce()
                                        var 入会 = textStartsWith("入会").findOnce()
                                        var 点击关注店铺 = text("点击关注店铺").findOnce()
                                        if (点击关注店铺 != null || 入会 != null || 点击订阅店铺 != null) {
                                            关注善后1()
                                            break
                                        }
                                        var zhy = textContains("全部任务").findOnce()
                                        if (zhy != null) {
                                            break
                                        }
                                        var 向右滑动验证 = text("向右滑动验证").findOnce()
                                        if (向右滑动验证 != null) {
                                            滑动验证()
                                        }
                                        通用执行任务()
                                    }
                                    //    log("返回")
                                    for (var f = 0; f < 10; f++) {
                                        var zhy = textContains("全部任务").findOnce()
                                        if (zhy != null) {
                                            break
                                        }
                                        var 退出 = text("退出").findOnce()
                                        if (退出 != null) {
                                            //      log("退出:" + 退出.text())
                                            退出.click()
                                            sleep(2000)
                                        }
                                        back()
                                        sleep(1000)
                                    }
                                    //  log("if (ra == 1) {")
                                }
                                ra = 0
                                if (b == 1) {
                                    log("==" + rwjsz + "==")
                                    scrollForward()
                                    sleep(1000)
                                }
                                var 没有更 = text("没有更多了").findOnce()
                                if (没有更 != null) {
                                    if (没有更.bounds().bottom - 没有更.bounds().top >= 30) {
                                        log("滑动到底")

                                        掌上福袋()
                                        break
                                    }
                                }
                            }
                            //    log("---" + rwjs)
                            rwjs = rwjs + 1
                            if (rwjs >= 2) {
                                log("强停结束平台：掌上有钱")
                                break
                            }
                        }
                        掌上福袋()
                    }
                }
                写入文件("记忆", 25)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 25) {/////应用转生
                if (ui.xmpt23.checked == true) {
                    if (时间计算整理(Number(ui.xmds53.text()), Number(ui.xmds54.text())) && Number(日()) != Number(读取文件("闲鱼今日日期号"))) {
                        b = 0
                        启动闲鱼猪手()
                        if (b == 1) {
                            log("猪手已打开")
                            home()
                            b = 0
                            if (ui.应用转生通道2id.checked != true) {
                                启动应用转生()
                            }
                            if (ui.应用转生通道2id.checked == true) {
                                启动LSPatch()
                            }
                            if (b == 1) {
                                log("应用转生已打开")
                                home()
                                启动咸鱼()
                                if (b == 1) {
                                    log("等待完成任务")
                                    for (var sas = 0; sas < 48; sas++) {
                                        sleep(5000)
                                        var 闲鱼包名 = packageName("com.taobao.idlefish").findOnce()
                                        if (闲鱼包名 == null) {
                                            log("重新启动闲鱼")
                                            启动咸鱼()
                                            sas = 0
                                        }
                                        log("计时：" + sas)
                                    }
                                }
                            }
                            b = 0
                            启动咸鱼()
                            if (b == 1) {
                                薅羊毛赚话费a()
                            }
                            b = 0
                            启动咸鱼()
                            if (b == 1) {
                                点击指定频道好物a()
                            }
                            b = 0
                            启动咸鱼()
                            if (b == 1) {
                                我的经验一领取奖励()
                            }
                            b = 0
                            启动咸鱼()
                            if (b == 1) {
                                明日可领()
                            }
                        }
                    }
                }
                写入文件("记忆", 26)
                sleep(312)
            }
            if (Number(读取文件("记忆")) == 26) {/////淘宝取关
                if (ui.xmpt24.checked == true) {
                    if (ui.开启检测假死重启id.checked == true) {
                        try {
                            var jias = threads.start(function () {
                                写入文件("假死检测完毕", 0)
                                function 写入文件(a路径, a写入) {
                                    //文件路径
                                    var path = "/sdcard/" + a路径 + ".txt";
                                    //要写入的文件内容

                                    //以写入模式打开文件
                                    var file = open(path, "w");
                                    //写入文件
                                    file.write(a写入);
                                    //关闭文件
                                    file.close();
                                }
                                无障碍假死检测a()
                                function 无障碍假死检测a() {
                                    engines.all().map((ScriptEngine) => {
                                        if (engines.myEngine().toString() !== ScriptEngine.toString()) {
                                            ScriptEngine.forceStop();
                                        }
                                    });
                                    importClass(android.graphics.drawable.GradientDrawable);
                                    let view = ui.inflate(
                                        <vertical>
                                            <button id="dismiss" text="【无障碍假死检测...】" style="Widget.AppCompat.Button.Colored" />
                                            <horizontal w="*" gravity="right">
                                                <text>检测倒计时</text>
                                                <text id="countdown" textColor="#5373e6" padding="8 0 8 0">
                                                    3
                                                </text>
                                                <text>秒后关闭</text>
                                            </horizontal>
                                        </vertical>,
                                        null,
                                        false
                                    );
                                    view.dismiss.click(function () {
                                        dialog.dismiss();
                                        写入文件("假死检测完毕", 1)
                                    });
                                    let dialog = dialogs.build({
                                        customView: view,
                                    });
                                    // dialog.setCanceledOnTouchOutside(false); //点击dialog其它地方dismiss无效
                                    let dialogWindow = dialog.getWindow();
                                    setBackgroundRoundRounded(dialogWindow);
                                    dialog.setOnKeyListener({
                                        onKey: function (dialog, keyCode, event) {
                                            if (keyCode === KeyEvent.KEYCODE_BACK) {
                                                // toastLog("点击了返回键");
                                                return true;
                                            }
                                            return false;
                                        },
                                    });
                                    let AUTO_DISMISS_MILLIS = 3000;
                                    let countDownTimer = JavaAdapter(
                                        android.os.CountDownTimer,
                                        {
                                            onTick: function (millisUntilFinished) {
                                                ui.run(function () {
                                                    view.countdown.setText("" + parseInt(millisUntilFinished / 1000));
                                                });
                                            },
                                            onFinish: function () {
                                                if (dialog.isShowing()) {
                                                    dialog.dismiss();
                                                    无障碍假死检测b()
                                                }
                                            },
                                        },
                                        AUTO_DISMISS_MILLIS,
                                        300
                                    );
                                    dialog.setOnShowListener(
                                        new android.content.DialogInterface.OnShowListener({
                                            onShow: function (dialog) {
                                                countDownTimer.start();
                                            },
                                        })
                                    );

                                    dialog.show();
                                    /* -------------------------------------------------------------------------- */
                                    function setBackgroundRoundRounded(view) {
                                        let gradientDrawable = new GradientDrawable();

                                        gradientDrawable.setShape(GradientDrawable.RECTANGLE);

                                        gradientDrawable.setColor(colors.parseColor("#c8e6c9"));

                                        gradientDrawable.setCornerRadius(60);

                                        view.setBackgroundDrawable(gradientDrawable);
                                    }
                                    for (var ii = 0; ii < 5; ii++) {
                                        var guanb = text("【无障碍假死检测...】").findOnce()
                                        if (guanb != null) {
                                            click(guanb.bounds().centerX(), guanb.bounds().centerY());//点击中心点
                                        }
                                        sleep(1000)
                                    }
                                }
                                function 无障碍假死检测b() {
                                    engines.all().map((ScriptEngine) => {
                                        if (engines.myEngine().toString() !== ScriptEngine.toString()) {
                                            ScriptEngine.forceStop();
                                        }
                                    });
                                    importClass(android.graphics.drawable.GradientDrawable);
                                    let view = ui.inflate(
                                        <vertical>
                                            <button id="dismiss" text="【无障碍已假死】！！！" style="Widget.AppCompat.Button.Colored" />
                                            <button id="adismiss" text="1，建议重启手机解决！" style="Widget.AppCompat.Button.Colored" />
                                            <button id="bdismiss" text="2，否则部分平台功能做不了。" style="Widget.AppCompat.Button.Colored" />
                                            <horizontal w="*" gravity="right">
                                                <text>倒计时</text>
                                                <text id="countdown" textColor="#5373e6" padding="8 0 8 0">
                                                    3
                                                </text>
                                                <text>秒后关闭</text>
                                            </horizontal>
                                        </vertical>,
                                        null,
                                        false
                                    );
                                    view.dismiss.click(function () {
                                        dialog.dismiss();
                                    });
                                    let dialog = dialogs.build({
                                        customView: view,
                                    });
                                    // dialog.setCanceledOnTouchOutside(false); //点击dialog其它地方dismiss无效
                                    let dialogWindow = dialog.getWindow();
                                    setBackgroundRoundRounded(dialogWindow);
                                    dialog.setOnKeyListener({
                                        onKey: function (dialog, keyCode, event) {
                                            if (keyCode === KeyEvent.KEYCODE_BACK) {
                                                // toastLog("点击了返回键");
                                                return true;
                                            }
                                            return false;
                                        },
                                    });
                                    let AUTO_DISMISS_MILLIS = 1000;
                                    let countDownTimer = JavaAdapter(
                                        android.os.CountDownTimer,
                                        {
                                            onTick: function (millisUntilFinished) {
                                                ui.run(function () {
                                                    view.countdown.setText("" + parseInt(millisUntilFinished / 1000));
                                                });
                                            },
                                            onFinish: function () {
                                                if (dialog.isShowing()) {
                                                    dialog.dismiss();
                                                    重启()
                                                }
                                            },
                                        },
                                        AUTO_DISMISS_MILLIS,
                                        300
                                    );
                                    dialog.setOnShowListener(
                                        new android.content.DialogInterface.OnShowListener({
                                            onShow: function (dialog) {
                                                countDownTimer.start();
                                            },
                                        })
                                    );

                                    dialog.show();
                                    /* -------------------------------------------------------------------------- */
                                    function setBackgroundRoundRounded(view) {
                                        let gradientDrawable = new GradientDrawable();

                                        gradientDrawable.setShape(GradientDrawable.RECTANGLE);

                                        gradientDrawable.setColor(colors.parseColor("#c8e6c9"));

                                        gradientDrawable.setCornerRadius(60);

                                        view.setBackgroundDrawable(gradientDrawable);
                                    }
                                }
                                function 重启() {
                                    for (var i = 1; i < 100; i++) {
                                        powerDialog()
                                        sleep(4000)
                                        var 重启 = text("重启").findOnce() || desc("重启").findOnce()
                                        if (重启) {
                                            for (var hw1 = 1; hw1 < 100; hw1++) {
                                                var 点 = clickable(true).findOnce(hw1)
                                                if (点) {
                                                    点.click()
                                                }
                                            }
                                        }
                                        var 点击重启 = text("点击重启").findOnce() || desc("点击重启").findOnce()
                                        if (点击重启) {
                                            for (var hw2 = 1; hw2 < 100; hw2++) {
                                                var 点a = clickable(true).findOnce(hw2)
                                                if (点a) {
                                                    点a.click()
                                                }
                                            }
                                        }
                                    }
                                }
                            });
                            for (var wza = 10; wza > 0; wza--) {
                                log("无障碍假死检测10秒" + wza)
                                sleep(2000)
                                if (Number(读取文件("假死检测完毕")) == 1) {
                                    log("无障碍假死检测正常")
                                    break
                                }
                            }
                            jias.interrupt()
                        } catch (e) {
                            log("哎呀！！！")
                        }
                    }
                    if (时间计算整理(Number(ui.xmds57.text()), Number(ui.xmds58.text())) && Number(日()) != Number(读取文件("淘宝取关订阅店铺"))) {
                        log("")
                        log("")
                        log("运行【淘宝取关】")
                        关闭所有后台()
                        b = 1
                        var 限时30分 = (+parseInt(new Date().getTime() / 1000)) + 60 * (Number(ui.xmds64.text()) + 30)
                        while (true) {
                            var a进行时间 = new Date().getTime() / 1000
                            倒计时a = Math.floor(Number(+ (parseInt(a进行时间 - 限时30分) / 60)) * 100) / 100;
                            if (a进行时间 >= 限时30分) {
                                log("时间上限")
                                写入文件("淘宝取关订阅店铺", 日())
                                break
                            }
                            启动淘宝("入会店铺")
                            var 筛选 = text("筛选").findOnce()
                            if (筛选 != null) {
                                筛选.click()
                                sleep(3000)
                            }
                            淘宝取关()
                            // log("==="+b)
                            if (b == 999) {
                                log("结束淘宝取关")
                                写入文件("淘宝取关订阅店铺", 日())
                                break
                            }
                        }
                    }

                }
            }
            //////////////////////////////////////////掌上提现
            if (Number(日()) != Number(读取文件("掌上提现")) && Number(时()) >= Number(ui.xmds61.text()) && Number(时()) <= Number(ui.xmds62.text()) || Number(日()) != Number(读取文件("掌上提现")) && Number(ui.xmds61.text()) <= 0 && Number(ui.xmds62.text()) <= 0) {
                try {
                    log("")
                    log("")
                    log("运行【掌上提现】")
                    关闭所有后台()
                    启动掌上提现()
                } catch (e) {
                    log(e)
                }
            }
            // } catch (e) {
            //     log(e)
            // }
            写入文件("记忆", 1)
            log("单次项目已完成")
            sleep(4000)
            back()
            sleep(4000)
        }
        ////////
        /////////
        //////////
        try {
            swipe(20, 10, 500, 10, 500)
            sleep(3000)
            cumtomUI()
            console.setGlobalLogConfig({
                "file": "/sdcard/99999999999.txt"
            });

            if (ui.jiyiid.checked == true) {
                写入文件("记忆", 1)//
            }
        } catch (error) {
        }
        log(".")
        var ko = 0
        var ra = 0
        var b = 0
        var 关注sbc = 0
        var rsj = 0
        var pcrw = 0
        var yuea = 0
        var rwjs = 0
        var soutext = 0
        var yu额a = 0
        var yu额b = 0
        while (true) {
            try {
                zcx()
            } catch (error) {
                log("=====" + error)
            }
        }
    });

});